Class GO_UnlimitedInteger


final class GO_UnlimitedInteger extends PropertyType<GO_UnlimitedInteger,UnlimitedInteger>
Wraps an "unlimited" integer value in an <gco:UnlimitedInteger> 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:
1.0
Version:
1.0
See Also:
  • Constructor Details

    • GO_UnlimitedInteger

      GO_UnlimitedInteger()
      Empty constructor used only by JAXB.
    • GO_UnlimitedInteger

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

    • getBoundType

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

      protected GO_UnlimitedInteger wrap(UnlimitedInteger 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_UnlimitedInteger,UnlimitedInteger>
      Parameters:
      value - the integer value we want to wrap in an element representing its type.
      Returns:
      a wrapper for the integer value, that is to say an integer value wrapped by <gco:UnlimitedInteger> element.
    • getElement

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

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