Class TM_PeriodDuration

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<TM_PeriodDuration,org.opengis.temporal.PeriodDuration>
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
Author:
Guilhem Legal (Geomatys), Martin Desruisseaux (Geomatys)
  • 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.
    • 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.