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
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
Empty constructor for JAXB.private
TM_Duration
(Duration metadata) Wraps a Temporal Duration value at marshalling-time. -
Method Summary
Modifier and TypeMethodDescriptionReturns the GeoAPI interface which is bound by this adapter.Returns theDuration
generated from the metadata value.void
setElement
(Duration duration) Sets the value from theDuration
.protected TM_Duration
Returns the Duration value wrapped by agts:TM_Duration
element.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
-
Constructor Details
-
TM_Duration
TM_Duration()Empty constructor for JAXB. -
TM_Duration
Wraps a Temporal Duration value at marshalling-time.- Parameters:
metadata
- the metadata value to marshal.
-
-
Method Details
-
wrap
Returns the Duration value wrapped by agts:TM_Duration
element.- Specified by:
wrap
in 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:
getBoundType
in classPropertyType<TM_Duration,
Duration> - Returns:
Duration.class
-
getElement
Returns theDuration
generated 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.
-