Class GM_Object
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GM_Object,org.opengis.geometry.Geometry>
org.apache.sis.internal.jaxb.geometry.GM_Object
JAXB adapter for
Geometry
, in order to integrate the value in an element complying with OGC/ISO standard.
The geometry element names are usually prefixed by gml:
.
The default implementation does almost nothing. The geometry objects will not
create the expected JAXBElement
type. This class is only a hook to be extended by more
specialized subclasses in GML modules.
- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JAXBElement
<? extends org.opengis.geometry.Geometry> The Geometry value covered by agml:**
element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal GM_Object
marshal
(org.opengis.geometry.Geometry value) Converts a GeoAPI interface to the appropriate adapter for the way it will be marshalled into an XML file or stream.final org.opengis.geometry.Geometry
Converts an adapter read from an XML stream to the GeoAPI interface which will contains this value.protected GM_Object
wrap
(org.opengis.geometry.Geometry value) Returns the geometry value to be covered by agml:**
element.
-
Field Details
-
geometry
The Geometry value covered by agml:**
element.
-
-
Constructor Details
-
GM_Object
public GM_Object()Empty constructor for JAXB and subclasses only.
-
-
Method Details
-
unmarshal
Converts an adapter read from an XML stream to the GeoAPI interface which will contains this value. JAXB calls automatically this method at unmarshalling time.- Specified by:
unmarshal
in classXmlAdapter<GM_Object,
org.opengis.geometry.Geometry> - Parameters:
value
- the adapter for a geometry value.- Returns:
- an instance of the GeoAPI interface which represents the geometry value.
-
marshal
Converts a GeoAPI interface to the appropriate adapter for the way it will be marshalled into an XML file or stream. JAXB calls automatically this method at marshalling time.- Specified by:
marshal
in classXmlAdapter<GM_Object,
org.opengis.geometry.Geometry> - Parameters:
value
- the geometry value, here the interface.- Returns:
- the adapter for the given value.
-
wrap
Returns the geometry value to be covered by agml:**
element. The default implementation returnsnull
if all cases. Subclasses must override this method in order to provide useful marshalling.- Parameters:
value
- the value to marshal.- Returns:
- the adapter which covers the geometry value.
-