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 Details

    • baseCRS

      private org.opengis.referencing.crs.SingleCRS baseCRS
      Temporary storage for the baseCRS during org.apache.sis.referencing.crs.AbstractDerivedCRS unmarshalling. A temporary location is needed because AbstractDerivedCRS does not have any explicit field for baseCRS.
      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)
  • Method Details

    • getBoundType

      protected Class<org.opengis.referencing.operation.Conversion> 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 class PropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion>
      Returns:
      Conversion.class
    • wrap

      protected CC_Conversion wrap(org.opengis.referencing.operation.Conversion conversion)
      Invoked by PropertyType at marshalling time for wrapping the given value in a <gml:Conversion> XML element.
      Specified by:
      wrap in class PropertyType<CC_Conversion,org.opengis.referencing.operation.Conversion>
      Parameters:
      conversion - the element to marshal.
      Returns:
      a PropertyType wrapping the given the element.
    • getElement

      public DefaultConversion 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 the wrap method.
      Returns:
      the element to be marshalled.
    • setElement

      public void setElement(DefaultConversion conversion)
      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 the baseCRS associated to the given Conversion. This temporary storage is needed because org.apache.sis.referencing.crs.AbstractDerivedCRS does not have any explicit field for baseCRS. Instead, the base CRS is stored in Conversion.getSourceCRS(), but we can set this property only after the DerivedCRS coordinate system has been unmarshalled. See AbstractDerivedCRS.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.