Class CC_Conversion
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<CC_Conversion,org.opengis.referencing.operation.Conversion>
org.apache.sis.internal.jaxb.gco.PropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion>
org.apache.sis.internal.jaxb.referencing.CC_Conversion
public final class CC_Conversion
extends PropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion>
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
FieldsModifier and TypeFieldDescriptionprivate org.opengis.referencing.crs.SingleCRS
Temporary storage for thebaseCRS
duringorg.apache.sis.referencing.crs.AbstractDerivedCRS
unmarshalling.Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB only.private
CC_Conversion
(org.opengis.referencing.operation.Conversion conversion) Constructor for thewrap(org.opengis.referencing.operation.Conversion)
method only. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class
<org.opengis.referencing.operation.Conversion> 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:Conversion>
XML element.static org.opengis.referencing.crs.SingleCRS
setBaseCRS
(org.opengis.referencing.operation.Conversion conversion, org.opengis.referencing.crs.SingleCRS crs) Temporarily stores thebaseCRS
associated to the givenConversion
.void
setElement
(DefaultConversion conversion) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected CC_Conversion
wrap
(org.opengis.referencing.operation.Conversion conversion) Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:Conversion>
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
-
Field Details
-
baseCRS
private org.opengis.referencing.crs.SingleCRS baseCRSTemporary storage for thebaseCRS
duringorg.apache.sis.referencing.crs.AbstractDerivedCRS
unmarshalling. A temporary location is needed becauseAbstractDerivedCRS
does not have any explicit field forbaseCRS
.- See Also:
-
-
Constructor Details
-
CC_Conversion
public CC_Conversion()Empty constructor for JAXB only. -
CC_Conversion
private CC_Conversion(org.opengis.referencing.operation.Conversion conversion) Constructor for thewrap(org.opengis.referencing.operation.Conversion)
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<CC_Conversion,
org.opengis.referencing.operation.Conversion> - Returns:
Conversion.class
-
wrap
Invoked byPropertyType
at marshalling time for wrapping the given value in a<gml:Conversion>
XML element.- Specified by:
wrap
in classPropertyType<CC_Conversion,
org.opengis.referencing.operation.Conversion> - Parameters:
conversion
- 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:Conversion>
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:
conversion
- the unmarshalled element.
-
setBaseCRS
public static org.opengis.referencing.crs.SingleCRS setBaseCRS(org.opengis.referencing.operation.Conversion conversion, org.opengis.referencing.crs.SingleCRS crs) Temporarily stores thebaseCRS
associated to the givenConversion
. This temporary storage is needed becauseorg.apache.sis.referencing.crs.AbstractDerivedCRS
does not have any explicit field forbaseCRS
. Instead, the base CRS is stored inConversion.getSourceCRS()
, but we can set this property only after theDerivedCRS
coordinate system has been unmarshalled. SeeAbstractDerivedCRS.afterUnmarshal(Unmarshaller, Object parent)
for more information.- Parameters:
conversion
- the conversion to which to associate a base CRS.crs
- the base CRS to associate to the given conversion.- Returns:
- the previous base CRS, or
null
if none.
-