Package org.geotools.gml3.bindings
Class GML3EncodingUtils
Object
GML3EncodingUtils
- Direct Known Subclasses:
GML32EncodingUtils
Utility class for gml3 encoding.
- Author:
- Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org, Ben Caradoc-Davies, CSIRO Exploration and Mining
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAbstractFeatureTypeEncode
(Object object, Document document, Element value, XSDIdRegistry idSet) AbstractFeatureTypeGetProperties
(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Configuration configuration) static NamespaceSupport
copyNamespaceSupport
(NamespaceSupport namespaceSupport) Deep clones aNamespaceSupport
so that it can be used outside of this parse (as its state changes during the parse, and we need to keep all namespace mapping present at this point for later usage)static void
encodeAsText
(Document document, Element element, Object value) static void
encodeClientProperties
(Property complex, Element element) Encode any client properties (XML attributes) found in the UserData map of a ComplexAttribute as XML attributes of the element.static void
encodeSimpleContent
(ComplexAttribute complex, Document document, Element element) Encode the simpleContent property of a ComplexAttribute (if any) as an XML text node.GeometryPropertyType_GetProperties
(Geometry geometry) Helper method used to implementComplexBinding.getProperties(Object, XSDElementDeclaration)
for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyTypeGeometryPropertyType_GetProperty
(Geometry geometry, QName name) Helper method used to implementComplexBinding.getProperty(Object, QName)
for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyTypeGeometryPropertyType_GetProperty
(Geometry geometry, QName name, boolean makeEmpty) Helper method used to implementComplexBinding.getProperty(Object, QName)
for bindings of geometry reference types: GeometryPropertyType PointPropertyType LineStringPropertyType PolygonPropertyTypestatic String
Get axisLabels for the geometry if set in app-schema mapping configuration.static String
static Object
getSimpleContent
(ComplexAttribute complex) Return the simple content of aComplexAttribute
if it represents a complexType with simpleContent, otherwise null.static String
Get uomLabels for the geometry if set in app-schema mapping configuration.static void
static URI
toURI
(CoordinateReferenceSystem crs, SrsSyntax srsSyntax)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
GML3EncodingUtils
public GML3EncodingUtils() -
GML3EncodingUtils
-
-
Method Details
-
toURI
-
getUomLabels
Get uomLabels for the geometry if set in app-schema mapping configuration. -
getAxisLabels
Get axisLabels for the geometry if set in app-schema mapping configuration. -
getID
-
setID
-
GeometryPropertyType_GetProperty
Helper method used to implementComplexBinding.getProperty(Object, QName)
for bindings of geometry reference types:- GeometryPropertyType
- PointPropertyType
- LineStringPropertyType
- PolygonPropertyType
-
GeometryPropertyType_GetProperty
Helper method used to implementComplexBinding.getProperty(Object, QName)
for bindings of geometry reference types:- GeometryPropertyType
- PointPropertyType
- LineStringPropertyType
- PolygonPropertyType
-
GeometryPropertyType_GetProperties
Helper method used to implementComplexBinding.getProperties(Object, XSDElementDeclaration)
for bindings of geometry reference types:- GeometryPropertyType
- PointPropertyType
- LineStringPropertyType
- PolygonPropertyType
-
AbstractFeatureTypeEncode
public Element AbstractFeatureTypeEncode(Object object, Document document, Element value, XSDIdRegistry idSet) -
AbstractFeatureTypeGetProperties
public List<Object[]> AbstractFeatureTypeGetProperties(Object object, XSDElementDeclaration element, SchemaIndex schemaIndex, Configuration configuration) -
encodeClientProperties
Encode any client properties (XML attributes) found in the UserData map of a ComplexAttribute as XML attributes of the element.- Parameters:
complex
- the ComplexAttribute to search for client propertieselement
- the element to which XML attributes should be added
-
encodeSimpleContent
public static void encodeSimpleContent(ComplexAttribute complex, Document document, Element element) Encode the simpleContent property of a ComplexAttribute (if any) as an XML text node.A property named simpleContent is a convention for representing XSD complexType with simpleContent in GeoAPI.
- Parameters:
complex
- the ComplexAttribute to be searched for simpleContentdocument
- the containing documentelement
- the element to which text node should be added
-
encodeAsText
-
getSimpleContent
Return the simple content of aComplexAttribute
if it represents a complexType with simpleContent, otherwise null. -
copyNamespaceSupport
Deep clones aNamespaceSupport
so that it can be used outside of this parse (as its state changes during the parse, and we need to keep all namespace mapping present at this point for later usage)
-