Class CC_Conversion
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
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.SingleCRSTemporary storage for thebaseCRSduringorg.apache.sis.referencing.crs.AbstractDerivedCRSunmarshalling.Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB only.privateCC_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.SingleCRSsetBaseCRS(org.opengis.referencing.operation.Conversion conversion, org.opengis.referencing.crs.SingleCRS crs) Temporarily stores thebaseCRSassociated to the givenConversion.voidsetElement(DefaultConversion conversion) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected CC_Conversionwrap(org.opengis.referencing.operation.Conversion conversion) Invoked byPropertyTypeat 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 thebaseCRSduringorg.apache.sis.referencing.crs.AbstractDerivedCRSunmarshalling. A temporary location is needed becauseAbstractDerivedCRSdoes 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:
getBoundTypein classPropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion> - Returns:
Conversion.class
-
wrap
Invoked byPropertyTypeat marshalling time for wrapping the given value in a<gml:Conversion>XML element.- Specified by:
wrapin classPropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion> - Parameters:
conversion- 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:Conversion>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.- 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 thebaseCRSassociated to the givenConversion. This temporary storage is needed becauseorg.apache.sis.referencing.crs.AbstractDerivedCRSdoes not have any explicit field forbaseCRS. Instead, the base CRS is stored inConversion.getSourceCRS(), but we can set this property only after theDerivedCRScoordinate 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
nullif none.
-