Package org.apache.sis.referencing.crs
Class SC_GeographicCRS
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_GeographicCRS,org.opengis.referencing.crs.GeographicCRS>
org.apache.sis.referencing.crs.SC_GeographicCRS
final class SC_GeographicCRS
extends PropertyType<SC_GeographicCRS,org.opengis.referencing.crs.GeographicCRS>
JAXB adapter for
GeographicCRS
, in order to integrate the value in an element
complying with OGC/ISO standard.
Note: JAXB adapters are usually declared in the org.apache.sis.internal.jaxb.referencing
package, but this one is an exception because it needs access to package-privated DefaultGeodeticCRS
class.
- Since:
- 0.6
- Version:
- 0.6
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB only.private
SC_GeographicCRS
(org.opengis.referencing.crs.GeographicCRS cs) Constructor for thewrap(org.opengis.referencing.crs.GeographicCRS)
method only. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<org.opengis.referencing.crs.GeographicCRS>
Returns the GeoAPI interface which is bound by this adapter.Invoked by JAXB at marshalling time for getting the actual element to write inside the<gml:GeodeticCRS>
XML element.void
Invoked by JAXB at unmarshalling time for storing the result temporarily.protected SC_GeographicCRS
wrap
(org.opengis.referencing.crs.GeographicCRS cs) Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:GeodeticCRS>
XML element.Methods inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
accept2014, getActuate, getArcRole, getHRef, getNilReason, getRole, getShow, getTitle, getUUIDREF, incomplete, marshal, setActuate, setArcRole, setHRef, setNilReason, setRole, setShow, setTitle, setUUIDREF, unmarshal
-
Constructor Details
-
SC_GeographicCRS
public SC_GeographicCRS()Empty constructor for JAXB only. -
SC_GeographicCRS
private SC_GeographicCRS(org.opengis.referencing.crs.GeographicCRS cs) Constructor for thewrap(org.opengis.referencing.crs.GeographicCRS)
method only.
-
-
Method Details
-
getBoundType
Returns the GeoAPI interface which is bound by this adapter. This method is indirectly invoked by the private constructor below, so it shall not depend on the state of this object.- Specified by:
getBoundType
in classPropertyType<SC_GeographicCRS,
org.opengis.referencing.crs.GeographicCRS> - Returns:
GeographicCRS.class
-
wrap
Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:GeodeticCRS>
XML element.- Specified by:
wrap
in classPropertyType<SC_GeographicCRS,
org.opengis.referencing.crs.GeographicCRS> - Parameters:
cs
- the element to marshal.- Returns:
- a
PropertyType
wrapping the given the element.
-
getElement
Invoked by JAXB at marshalling time for getting the actual element to write inside the<gml:GeodeticCRS>
XML element. This is the value or a copy of the value given in argument to thewrap
method.- Returns:
- the element to be marshalled.
-
setElement
Invoked by JAXB at unmarshalling time for storing the result temporarily.- Parameters:
cs
- the unmarshalled element.
-