Class GO_Integer64


public final class GO_Integer64 extends PropertyType<GO_Integer64,Long>
Wraps a long value in an <gco:Integer> element. The ISO 19115-3 standard requires most types to be wrapped by an element representing the value type. The JAXB default behavior is to marshal primitive Java types directly, without such wrapper element. The role of this class is to add the <gco:…> wrapper element required by ISO 19115-3.
Since:
0.4
Version:
0.4
  • Constructor Details

    • GO_Integer64

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

      private GO_Integer64(Long value)
      Constructs a wrapper for the given value.
      Parameters:
      value - the value.
  • Method Details

    • getBoundType

      protected Class<Long> getBoundType()
      Returns the Java type which is bound by this adapter.
      Specified by:
      getBoundType in class PropertyType<GO_Integer64,Long>
      Returns:
      Long.class
    • wrap

      protected GO_Integer64 wrap(Long value)
      Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements about primitive types.
      Specified by:
      wrap in class PropertyType<GO_Integer64,Long>
      Parameters:
      value - the integer value we want to surround by an element representing its type.
      Returns:
      an adaptation of the integer value, that is to say a integer value surrounded by <gco:Integer> element.
    • getElement

      public Long getElement()
      Invoked by JAXB at marshalling time for getting the actual value to write.
      Returns:
      the value to be marshalled.
    • setElement

      public void setElement(Long metadata)
      Invoked by JAXB at unmarshalling time for storing the result temporarily.
      Parameters:
      metadata - the unmarshalled value.