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.ConverterMatcherpublic void setSourceId(String sourceId)
FeatureConvertersetSourceId in interface FeatureConverterpublic void setWfsUrl(String url)
FeatureConvertersetWfsUrl in interface FeatureConverterpublic MetacardType getMetacardType()
FeatureConvertergetMetacardType in interface FeatureConverterpublic void setMetacardType(MetacardType metacardType)
FeatureConvertersetMetacardType in interface FeatureConverterpublic void setCoordinateOrder(String coordinateOrder)
FeatureConvertersetCoordinateOrder in interface FeatureConverterprotected 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.