Class SC_CRS
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
org.apache.sis.internal.jaxb.referencing.SC_CRS
public final class SC_CRS
extends PropertyType<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
JAXB adapter mapping implementing class to the GeoAPI interface. See
package documentation for more information about JAXB and interface.
- Since:
- 0.6
- Version:
- 0.7
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSC_CRS()
Empty constructor for JAXB only.private
SC_CRS
(org.opengis.referencing.crs.CoordinateReferenceSystem crs) Constructor for thewrap(org.opengis.referencing.crs.CoordinateReferenceSystem)
method only. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class
<org.opengis.referencing.crs.CoordinateReferenceSystem> 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:AbstractCRS>
XML element.void
setElement
(AbstractCRS crs) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected SC_CRS
wrap
(org.opengis.referencing.crs.CoordinateReferenceSystem crs) Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:AbstractCRS>
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_CRS
public SC_CRS()Empty constructor for JAXB only. -
SC_CRS
private SC_CRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs) Constructor for thewrap(org.opengis.referencing.crs.CoordinateReferenceSystem)
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_CRS,
org.opengis.referencing.crs.CoordinateReferenceSystem> - Returns:
CoordinateReferenceSystem.class
-
wrap
Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:AbstractCRS>
XML element.- Specified by:
wrap
in classPropertyType<SC_CRS,
org.opengis.referencing.crs.CoordinateReferenceSystem> - Parameters:
crs
- 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:AbstractCRS>
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.Note: the unmarshalled CRS may be ofGeodeticCRS
type, which is not the most specific GeoAPI type. But theGeographicCRS
andGeocentricCRS
sub-types are currently not part of ISO 19111. We could substitute the CRS by a more specific type here, but this would break the references specified byxlink:href
attributes. For now we live with theGeodeticCRS
as-is — most of Apache SIS should be able to work with that.- Parameters:
crs
- the unmarshalled element.
-