Package org.apache.sis.internal.jaxb.gts
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)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWraps the value only if marshalling an element from the ISO 19115:2014 metadata model. -
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class<org.opengis.temporal.PeriodDuration> Returns the GeoAPI interface which is bound by this adapter.final DurationReturns theDurationgenerated from the metadata value.final voidsetElement(Duration duration) Sets the value from theDuration.protected TM_PeriodDurationwrap(org.opengis.temporal.PeriodDuration value) Returns the Period Duration value wrapped by agts:TM_PeriodDurationelement.Methods inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
accept2014, getActuate, getArcRole, getHRef, getNilReason, getRole, getShow, getTitle, getUUIDREF, incomplete, marshal, setActuate, setArcRole, setHRef, setNilReason, setRole, setShow, setTitle, setUUIDREF, unmarshal
-
Method Details
-
wrap
Returns the Period Duration value wrapped by agts:TM_PeriodDurationelement.- Specified by:
wrapin classPropertyType<TM_PeriodDuration,org.opengis.temporal.PeriodDuration> - Parameters:
value- the value to marshal.- Returns:
- the adapter which wraps the metadata value.
-
getBoundType
Returns the GeoAPI interface which is bound by this adapter.- Specified by:
getBoundTypein classPropertyType<TM_PeriodDuration,org.opengis.temporal.PeriodDuration> - Returns:
PeriodDuration.class
-
getElement
Returns theDurationgenerated from the metadata value. This method is systematically called at marshalling time by JAXB.- Returns:
- the time period, or
null.
-
setElement
Sets the value from theDuration. This method is called at unmarshalling time by JAXB.- Parameters:
duration- the adapter to set.
-