Class TM_Duration


public final class TM_Duration extends PropertyType<TM_Duration,Duration>
Wraps a gts:TM_Duration element.
Since:
1.0
Version:
1.0
  • Constructor Details

    • TM_Duration

      TM_Duration()
      Empty constructor for JAXB.
    • TM_Duration

      private TM_Duration(Duration metadata)
      Wraps a Temporal Duration value at marshalling-time.
      Parameters:
      metadata - the metadata value to marshal.
  • Method Details

    • wrap

      protected TM_Duration wrap(Duration value)
      Returns the Duration value wrapped by a gts:TM_Duration element.
      Specified by:
      wrap in class PropertyType<TM_Duration,Duration>
      Parameters:
      value - the value to marshal.
      Returns:
      the adapter which wraps the metadata value.
    • getBoundType

      protected Class<Duration> getBoundType()
      Returns the GeoAPI interface which is bound by this adapter.
      Specified by:
      getBoundType in class PropertyType<TM_Duration,Duration>
      Returns:
      Duration.class
    • getElement

      public Duration getElement()
      Returns the Duration generated from the metadata value. This method is systematically called at marshalling time by JAXB.
      Returns:
      the time period, or null.
    • setElement

      public void setElement(Duration duration)
      Sets the value from the Duration. This method is called at unmarshalling time by JAXB.
      Parameters:
      duration - the value to set.