java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
org.apache.sis.internal.jaxb.referencing.SC_CRS

public final class SC_CRS extends PropertyType<SC_CRS,org.opengis.referencing.crs.CoordinateReferenceSystem>
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
  • Constructor Details

  • Method Details

    • getBoundType

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

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

      public AbstractCRS getElement()
      Invoked by JAXB at marshalling time for getting the actual element to write inside the <gml:AbstractCRS> 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(AbstractCRS crs)
      Invoked by JAXB at unmarshalling time for storing the result temporarily.
      Note: the unmarshalled CRS may be of GeodeticCRS type, which is not the most specific GeoAPI type. But the GeographicCRS and GeocentricCRS sub-types are currently not part of ISO 19111. We could substitute the CRS by a more specific type here, but this would break the references specified by xlink:href attributes. For now we live with the GeodeticCRS as-is — most of Apache SIS should be able to work with that.
      Parameters:
      crs - the unmarshalled element.