Package org.vast.ogc.gml
Class GMLStaxBindings
java.lang.Object
net.opengis.AbstractBindings
net.opengis.AbstractXMLStreamBindings
net.opengis.gml.v32.bind.XMLStreamBindings
org.vast.ogc.gml.GMLStaxBindings
- Direct Known Subclasses:
SamplingFeatureReader
Helper wrapping the auto-generated GML StAX bindings
- Since:
- Sep 25, 2014
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GmlIdGenerator<AbstractGML>
protected Map<QName,
IFeatureStaxBindings<AbstractFeature>> protected DecimalFormat
protected GmlIdGenerator<AbstractGML>
static final String
static final String
static final String
protected StringBuilder
protected GmlIdGenerator<AbstractGML>
Fields inherited from class net.opengis.gml.v32.bind.XMLStreamBindings
factory, NS_URI
Fields inherited from class net.opengis.AbstractXMLStreamBindings
ERROR_INVALID_ELT, ERROR_UNSUPPORTED_TYPE, idrefMap, nsContext, XLINK_NS_URI, XSI_NS_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getCoordinateStringValue
(double[] coords) static QName
readAbstractFeature
(XMLStreamReader reader) Dispatcher method for reading elements derived from AbstractFeaturereadGenericFeature
(XMLStreamReader reader) void
void
writeAbstractFeature
(XMLStreamWriter writer, AbstractFeature bean) Dispatcher method for writing classes derived from AbstractFeaturevoid
writeAbstractGMLTypeAttributes
(XMLStreamWriter writer, AbstractGML bean) Writes attributes of AbstractGMLType complex typeprotected void
writeCommonFeatureProperties
(XMLStreamWriter writer, IFeature bean) protected void
writeCustomFeatureProperties
(XMLStreamWriter writer, IFeature bean) void
writeGenericFeature
(XMLStreamWriter writer, IFeature bean) Methods inherited from class net.opengis.gml.v32.bind.XMLStreamBindings
readAbstractCurve, readAbstractFeatureType, readAbstractFeatureTypeAttributes, readAbstractFeatureTypeElements, readAbstractGeometry, readAbstractGeometryTypeAttributes, readAbstractGeometryTypeElements, readAbstractGMLTypeAttributes, readAbstractGMLTypeElements, readAbstractSurface, readAbstractTimeGeometricPrimitive, readAbstractTimeGeometricPrimitiveTypeAttributes, readAbstractTimeGeometricPrimitiveTypeElements, readAbstractTimePrimitiveTypeAttributes, readAbstractTimePrimitiveTypeElements, readCodeListType, readCodeListTypeAttributes, readCodeOrNilReasonListType, readCodeOrNilReasonListTypeAttributes, readCodeType, readCodeTypeAttributes, readEnvelope, readEnvelopeType, readEnvelopeTypeAttributes, readEnvelopeTypeElements, readFeatureCollection, readFeatureCollectionType, readFeatureCollectionTypeAttributes, readFeatureCollectionTypeElements, readLinearRing, readLinearRingType, readLinearRingTypeElements, readLineString, readLineStringType, readLineStringTypeAttributes, readLineStringTypeElements, readLocationKeyWord, readLocationString, readPoint, readPointType, readPointTypeAttributes, readPointTypeElements, readPolygon, readPolygonType, readPolygonTypeAttributes, readPolygonTypeElements, readPositionElements, readReferenceType, readReferenceTypeAttributes, readTimeInstant, readTimeInstantType, readTimeInstantTypeAttributes, readTimeInstantTypeElements, readTimeInterval, readTimeIntervalLengthType, readTimeIntervalLengthTypeAttributes, readTimePeriod, readTimePeriodType, readTimePeriodTypeAttributes, readTimePeriodTypeElements, readTimePosition, readTimePositionType, readTimePositionTypeAttributes, writeAbstractCurve, writeAbstractFeatureTypeAttributes, writeAbstractFeatureTypeElements, writeAbstractGeometry, writeAbstractGeometryTypeAttributes, writeAbstractGeometryTypeElements, writeAbstractGMLTypeElements, writeAbstractSurface, writeAbstractTimeGeometricPrimitive, writeAbstractTimeGeometricPrimitiveTypeAttributes, writeAbstractTimeGeometricPrimitiveTypeElements, writeAbstractTimePrimitiveTypeAttributes, writeAbstractTimePrimitiveTypeElements, writeCodeListType, writeCodeListTypeAttributes, writeCodeOrNilReasonListType, writeCodeOrNilReasonListTypeAttributes, writeCodeType, writeCodeTypeAttributes, writeEnvelope, writeEnvelopeType, writeEnvelopeTypeAttributes, writeEnvelopeTypeElements, writeFeatureCollection, writeFeatureCollectionType, writeFeatureCollectionTypeAttributes, writeFeatureCollectionTypeElements, writeLinearRing, writeLinearRingType, writeLinearRingTypeElements, writeLineString, writeLineStringType, writeLineStringTypeAttributes, writeLineStringTypeElements, writeLocationKeyWord, writeLocationString, writePoint, writePointType, writePointTypeAttributes, writePointTypeElements, writePolygon, writePolygonType, writePolygonTypeAttributes, writePolygonTypeElements, writeReferenceType, writeReferenceTypeAttributes, writeTimeInstant, writeTimeInstantType, writeTimeInstantTypeAttributes, writeTimeInstantTypeElements, writeTimeInterval, writeTimeIntervalLengthType, writeTimeIntervalLengthTypeAttributes, writeTimePeriod, writeTimePeriodType, writeTimePeriodTypeAttributes, writeTimePeriodTypeElements, writeTimePosition, writeTimePositionType, writeTimePositionTypeAttributes
Methods inherited from class net.opengis.AbstractXMLStreamBindings
checkElementName, checkElementQName, collectAttributes, declareNamespacesOnRootElement, ensureNamespaceDecl, ensurePrefix, errorLocationString, getNamespaceContext, getQNameFromString, getStringValue, readExtension, readPropertyAttributes, readPropertyAttributes, readXlinkAttributes, setNamespaceContext, setNamespacePrefixes, setupHrefResolver, skipElementAndAllChildren, skipElementAndAllChildren, writeExtension, writeNamespaces, writePropertyAttributes, writeXlinkAttributes
Methods inherited from class net.opengis.AbstractBindings
canWriteExtension, getBooleanArrayFromString, getBooleanFromString, getByteFromString, getDateTimeArrayFromString, getDateTimeFromString, getDateTimeOrDoubleFromString, getDoubleArrayFromString, getDoubleFromString, getDurationFromString, getFloatFromString, getIntArrayFromString, getIntFromString, getIsoDurationString, getLongFromString, getShortFromString, getStringArrayFromString, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValueAsDoubles, trimStringValue
-
Field Details
-
NS_PREFIX_GML
- See Also:
-
NS_PREFIX_XLINK
- See Also:
-
NS_PREFIX_XSI
- See Also:
-
geomIds
-
timeIds
-
featureIds
-
sb
-
featureTypesBindings
-
formatter
-
-
Constructor Details
-
GMLStaxBindings
public GMLStaxBindings() -
GMLStaxBindings
public GMLStaxBindings(boolean useJTS) -
GMLStaxBindings
-
-
Method Details
-
getFactory
-
registerFeatureBinding
-
readGenericFeature
- Throws:
XMLStreamException
-
writeGenericFeature
- Throws:
XMLStreamException
-
writeCommonFeatureProperties
protected void writeCommonFeatureProperties(XMLStreamWriter writer, IFeature bean) throws XMLStreamException - Throws:
XMLStreamException
-
writeCustomFeatureProperties
protected void writeCustomFeatureProperties(XMLStreamWriter writer, IFeature bean) throws XMLStreamException - Throws:
XMLStreamException
-
readAbstractFeature
Description copied from class:XMLStreamBindings
Dispatcher method for reading elements derived from AbstractFeature- Overrides:
readAbstractFeature
in classXMLStreamBindings
- Throws:
XMLStreamException
-
writeAbstractFeature
public void writeAbstractFeature(XMLStreamWriter writer, AbstractFeature bean) throws XMLStreamException Description copied from class:XMLStreamBindings
Dispatcher method for writing classes derived from AbstractFeature- Overrides:
writeAbstractFeature
in classXMLStreamBindings
- Throws:
XMLStreamException
-
writeAbstractGMLTypeAttributes
public void writeAbstractGMLTypeAttributes(XMLStreamWriter writer, AbstractGML bean) throws XMLStreamException Description copied from class:XMLStreamBindings
Writes attributes of AbstractGMLType complex type- Overrides:
writeAbstractGMLTypeAttributes
in classXMLStreamBindings
- Throws:
XMLStreamException
-
getCoordinateStringValue
- Overrides:
getCoordinateStringValue
in classAbstractBindings
-
getFeatureQName
-