Class GO_MultiplicityRange


final class GO_MultiplicityRange extends PropertyType<GO_MultiplicityRange,NumberRange<Integer>>
Adapter for a component of a multiplicity, consisting of an non-negative lower bound, and a potentially infinite upper bound.
Since:
1.0
Version:
1.0
  • Constructor Details

    • GO_MultiplicityRange

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

      private GO_MultiplicityRange(NumberRange<Integer> value)
      Constructs a wrapper for the given value.
      Parameters:
      value - the value.
  • Method Details

    • getBoundType

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

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

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

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