Class TM_PeriodDuration

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<TM_PeriodDuration,org.opengis.temporal.PeriodDuration>
org.apache.sis.internal.jaxb.gts.TM_PeriodDuration
Direct Known Subclasses:
TM_PeriodDuration.Since2014

public class TM_PeriodDuration extends PropertyType<TM_PeriodDuration,org.opengis.temporal.PeriodDuration>
Wraps a gts:TM_PeriodDuration element.
Since:
0.3
Version:
1.0
  • Constructor Details

    • TM_PeriodDuration

      TM_PeriodDuration()
      Empty constructor for JAXB.
    • TM_PeriodDuration

      private TM_PeriodDuration(org.opengis.temporal.PeriodDuration metadata)
      Wraps a Temporal Period Duration value at marshalling-time.
      Parameters:
      metadata - the metadata value to marshal.
  • Method Details

    • wrap

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

      protected final Class<org.opengis.temporal.PeriodDuration> getBoundType()
      Returns the GeoAPI interface which is bound by this adapter.
      Specified by:
      getBoundType in class PropertyType<TM_PeriodDuration,org.opengis.temporal.PeriodDuration>
      Returns:
      PeriodDuration.class
    • getElement

      public final 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.
    • toXML

      static Duration toXML(org.opengis.temporal.PeriodDuration duration)
      Converts the given ISO 19108 duration into a Java XML duration.
    • setElement

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

      static org.opengis.temporal.PeriodDuration toISO(Duration duration)
      Converts the given Java XML duration into an ISO 19108 duration.