Class SC_GeographicCRS

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_GeographicCRS,org.opengis.referencing.crs.GeographicCRS>
org.apache.sis.referencing.crs.SC_GeographicCRS

final class SC_GeographicCRS extends PropertyType<SC_GeographicCRS,org.opengis.referencing.crs.GeographicCRS>
JAXB adapter for GeographicCRS, in order to integrate the value in an element complying with OGC/ISO standard.

Note: JAXB adapters are usually declared in the org.apache.sis.internal.jaxb.referencing package, but this one is an exception because it needs access to package-privated DefaultGeodeticCRS class.

Since:
0.6
Version:
0.6
  • Constructor Details

    • SC_GeographicCRS

      public SC_GeographicCRS()
      Empty constructor for JAXB only.
    • SC_GeographicCRS

      private SC_GeographicCRS(org.opengis.referencing.crs.GeographicCRS cs)
      Constructor for the wrap(org.opengis.referencing.crs.GeographicCRS) method only.
  • Method Details

    • getBoundType

      protected Class<org.opengis.referencing.crs.GeographicCRS> 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<SC_GeographicCRS,org.opengis.referencing.crs.GeographicCRS>
      Returns:
      GeographicCRS.class
    • wrap

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

      public DefaultGeodeticCRS getElement()
      Invoked by JAXB at marshalling time for getting the actual element to write inside the <gml:GeodeticCRS> 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(DefaultGeodeticCRS cs)
      Invoked by JAXB at unmarshalling time for storing the result temporarily.
      Parameters:
      cs - the unmarshalled element.