public abstract class AbstractFeatureConverter extends Object implements FeatureConverter
Modifier and Type | Field and Description |
---|---|
protected String |
coordinateOrder |
protected static String |
ERROR_PARSING_MESSAGE |
protected static String |
EXT_PREFIX |
protected static String |
FID |
protected MetacardType |
metacardType |
protected String |
prefix |
protected String |
sourceId |
protected static String |
UTF8_ENCODING |
protected String |
wfsUrl |
Constructor and Description |
---|
AbstractFeatureConverter() |
AbstractFeatureConverter(MetacardMapper metacardMapper) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class clazz) |
protected com.thoughtworks.xstream.io.HierarchicalStreamReader |
copyXml(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader,
StringWriter writer) |
protected Metacard |
createMetacardFromFeature(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader,
MetacardType metacardType) |
MetacardType |
getMetacardType()
Get this converter's MetacardType
|
protected Serializable |
getValueForMetacardAttribute(AttributeType.AttributeFormat attributeFormat,
com.thoughtworks.xstream.io.HierarchicalStreamReader reader) |
protected Boolean |
isAttributeNotNull(String attributeName,
Metacard mc) |
protected Date |
parseDateFromXml(com.thoughtworks.xstream.io.HierarchicalStreamReader reader) |
void |
setCoordinateOrder(String coordinateOrder)
Set the coordinate order, LAT_LON or LON_LAT, on the converter.
|
void |
setMetacardType(MetacardType metacardType)
Set the MetacardType on the converter
|
void |
setSourceId(String sourceId)
set the source ID on the converter to be used when converting features into metacards
|
void |
setSrs(String srs) |
void |
setWfsUrl(String url)
Set the URL on the on converter
|
protected static final String FID
protected static final String ERROR_PARSING_MESSAGE
protected static final String UTF8_ENCODING
protected static final String EXT_PREFIX
protected String sourceId
protected String wfsUrl
protected String prefix
protected MetacardType metacardType
protected String coordinateOrder
public AbstractFeatureConverter()
public AbstractFeatureConverter(MetacardMapper metacardMapper)
public boolean canConvert(Class clazz)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
public void setSourceId(String sourceId)
FeatureConverter
setSourceId
in interface FeatureConverter
public void setWfsUrl(String url)
FeatureConverter
setWfsUrl
in interface FeatureConverter
public MetacardType getMetacardType()
FeatureConverter
getMetacardType
in interface FeatureConverter
public void setMetacardType(MetacardType metacardType)
FeatureConverter
setMetacardType
in interface FeatureConverter
public void setCoordinateOrder(String coordinateOrder)
FeatureConverter
setCoordinateOrder
in interface FeatureConverter
protected com.thoughtworks.xstream.io.HierarchicalStreamReader copyXml(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader, StringWriter writer)
protected Metacard createMetacardFromFeature(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader, MetacardType metacardType)
protected Serializable getValueForMetacardAttribute(AttributeType.AttributeFormat attributeFormat, com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
protected Date parseDateFromXml(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
public void setSrs(String srs)
This work is licensed under a Creative Commons Attribution 4.0 International License.