Class GO_Measure


public final class GO_Measure extends XmlAdapter<GO_Measure,Double>
The ISO 19103 Measure with a unit of measure defined in the gco namespace associated to the http://www.isotc211.org/2005/gco URL.

This class is identical to GO_Distance except for the name of the element, which is "Measure".

Since:
0.3
Version:
0.8
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Measure
    A proxy representation of the <gco:Measure> element.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Empty constructor used only by JAXB.
    private
    Constructs an adapter for the given value before marshalling.
  • Method Summary

    Modifier and Type
    Method
    Description
    marshal(Double value)
    Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements about measures.
    Allows JAXB to generate a Double object using the value found in the adapter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • measure

      private Measure measure
      A proxy representation of the <gco:Measure> element.
  • Constructor Details

    • GO_Measure

      public GO_Measure()
      Empty constructor used only by JAXB.
    • GO_Measure

      private GO_Measure(Double value)
      Constructs an adapter for the given value before marshalling.
      Parameters:
      value - the value.
  • Method Details

    • unmarshal

      public Double unmarshal(GO_Measure value)
      Allows JAXB to generate a Double object using the value found in the adapter.
      Specified by:
      unmarshal in class XmlAdapter<GO_Measure,Double>
      Parameters:
      value - the value wrapped in an adapter.
      Returns:
      the double value extracted from the adapter.
    • marshal

      public GO_Measure marshal(Double value)
      Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements about measures.
      Specified by:
      marshal in class XmlAdapter<GO_Measure,Double>
      Parameters:
      value - the double value we want to wrap into a <gco:Measure> element.
      Returns:
      a double value wrapped by <gco:Measure> element with an uom attribute.