Class SC_SingleCRS
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_SingleCRS,org.opengis.referencing.crs.SingleCRS>
org.apache.sis.internal.jaxb.referencing.SC_SingleCRS
public final class SC_SingleCRS
extends PropertyType<SC_SingleCRS,org.opengis.referencing.crs.SingleCRS>
JAXB adapter mapping implementing class to the GeoAPI interface. See
package documentation for more information about JAXB and interface.
- Since:
- 0.7
- Version:
- 0.7
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB only.privateSC_SingleCRS(org.opengis.referencing.crs.SingleCRS crs) Constructor for thewrap(org.opengis.referencing.crs.SingleCRS)method only. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<org.opengis.referencing.crs.SingleCRS>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:AbstractSingleCRS>XML element.voidsetElement(AbstractCRS crs) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected SC_SingleCRSwrap(org.opengis.referencing.crs.SingleCRS crs) Invoked byPropertyTypeat marshalling time for wrapping the given value in a<gml:AbstractSingleCRS>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_SingleCRS
public SC_SingleCRS()Empty constructor for JAXB only. -
SC_SingleCRS
private SC_SingleCRS(org.opengis.referencing.crs.SingleCRS crs) Constructor for thewrap(org.opengis.referencing.crs.SingleCRS)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:
getBoundTypein classPropertyType<SC_SingleCRS,org.opengis.referencing.crs.SingleCRS> - Returns:
SingleCRS.class
-
wrap
Invoked byPropertyTypeat marshalling time for wrapping the given value in a<gml:AbstractSingleCRS>XML element.- Specified by:
wrapin classPropertyType<SC_SingleCRS,org.opengis.referencing.crs.SingleCRS> - Parameters:
crs- the element to marshal.- Returns:
- a
PropertyTypewrapping the given the element.
-
getElement
Invoked by JAXB at marshalling time for getting the actual element to write inside the<gml:AbstractSingleCRS>XML element. This is the value or a copy of the value given in argument to thewrapmethod.- Returns:
- the element to be marshalled.
-
setElement
Invoked by JAXB at unmarshalling time for storing the result temporarily.Note: the unmarshalled CRS may be ofGeodeticCRStype, which is not the most specific GeoAPI type. SeeSC_CRS.setElement(AbstractCRS)for more discussion.- Parameters:
crs- the unmarshalled element.- Throws:
IllegalArgumentException- if the unmarshalled CRS is not a single CRS.
-