Class SC_VerticalCRS

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<SC_VerticalCRS,org.opengis.referencing.crs.VerticalCRS>
org.apache.sis.internal.jaxb.gco.PropertyType<SC_VerticalCRS,org.opengis.referencing.crs.VerticalCRS>
org.apache.sis.internal.jaxb.gml.SC_VerticalCRS
org.apache.sis.internal.jaxb.referencing.SC_VerticalCRS
All Implemented Interfaces:
AdapterReplacement

public final class SC_VerticalCRS extends SC_VerticalCRS implements AdapterReplacement
JAXB adapter for VerticalCRS, in order to integrate the value in an element complying with OGC/ISO standard. Note that the CRS is formatted using the GML schema, not the ISO 19139:2007 one.
Since:
0.4
Version:
0.4
  • Constructor Details

    • SC_VerticalCRS

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

      private SC_VerticalCRS(org.opengis.referencing.crs.VerticalCRS crs)
      Wraps a Vertical CRS value in a <gml:VerticalCRS> element at marshalling-time.
      Parameters:
      crs - the value to marshal.
  • Method Details

    • register

      public void register(Marshaller marshaller)
      Replaces the sis-metadata adapter by this adapter.
      Specified by:
      register in interface AdapterReplacement
      Parameters:
      marshaller - The marshaller to be configured.
    • register

      public void register(Unmarshaller unmarshaller)
      Replaces the sis-metadata adapter by this adapter.
      Specified by:
      register in interface AdapterReplacement
      Parameters:
      unmarshaller - The unmarshaller to be configured.
    • wrap

      protected SC_VerticalCRS wrap(org.opengis.referencing.crs.VerticalCRS value)
      Returns the Vertical CRS value wrapped by a <gml:VerticalCRS> element.
      Overrides:
      wrap in class SC_VerticalCRS
      Parameters:
      value - the value to marshal.
      Returns:
      the wrapper for the metadata value.
    • getElement

      public Object getElement()
      Returns the DefaultVerticalCRS created from the metadata value. This method is systematically called at marshalling-time by JAXB.
      Overrides:
      getElement in class SC_VerticalCRS
      Returns:
      the CRS to be marshalled.