Package org.apache.sis.internal.jaxb.gts
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wraps 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
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
Empty constructor for JAXB.private
TM_PeriodDuration
(org.opengis.temporal.PeriodDuration metadata) Wraps a Temporal Period Duration value at marshalling-time. -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class<org.opengis.temporal.PeriodDuration>
Returns the GeoAPI interface which is bound by this adapter.final Duration
Returns theDuration
generated from the metadata value.final void
setElement
(Duration duration) Sets the value from theDuration
.(package private) static org.opengis.temporal.PeriodDuration
Converts the given Java XML duration into an ISO 19108 duration.(package private) static Duration
toXML
(org.opengis.temporal.PeriodDuration duration) Converts the given ISO 19108 duration into a Java XML duration.protected TM_PeriodDuration
wrap
(org.opengis.temporal.PeriodDuration value) Returns the Period Duration value wrapped by agts:TM_PeriodDuration
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_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
Returns the Period Duration value wrapped by agts:TM_PeriodDuration
element.- Specified by:
wrap
in 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:
getBoundType
in classPropertyType<TM_PeriodDuration,
org.opengis.temporal.PeriodDuration> - Returns:
PeriodDuration.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
.
-
toXML
Converts the given ISO 19108 duration into a Java XML duration. -
setElement
Sets the value from theDuration
. This method is called at unmarshalling time by JAXB.- Parameters:
duration
- the adapter to set.
-
toISO
Converts the given Java XML duration into an ISO 19108 duration.
-