Package org.apache.sis.internal.jaxb.gts
Class TM_Duration
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<TM_Duration,Duration>
org.apache.sis.internal.jaxb.gco.PropertyType<TM_Duration,Duration>
org.apache.sis.internal.jaxb.gts.TM_Duration
Wraps a
gts:TM_Duration element.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Guilhem Legal (Geomatys), Martin Desruisseaux (Geomatys), Cullen Rombach (Image Matters)
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Method Summary
Modifier and TypeMethodDescriptionReturns the GeoAPI interface which is bound by this adapter.Returns theDurationgenerated from the metadata value.voidsetElement(Duration duration) Sets the value from theDuration.protected TM_DurationReturns the Duration value wrapped by agts:TM_Durationelement.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 Duration value wrapped by agts:TM_Durationelement.- Specified by:
wrapin classPropertyType<TM_Duration,Duration> - 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_Duration,Duration> - Returns:
Duration.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 value to set.
-