Package org.apache.sis.internal.jaxb.gml
Class TM_Primitive
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<TM_Primitive,org.opengis.temporal.TemporalPrimitive>
org.apache.sis.internal.jaxb.gml.TM_Primitive
- Direct Known Subclasses:
TM_Primitive.Since2014
JAXB adapter for
TemporalPrimitive, in order to integrate the value in an element complying
with OGC/ISO standard. Note that the CRS is formatted using the GML schema, not the ISO 19139:2007 one.- Since:
- 0.3
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWraps the value only if marshalling ISO 19115-3 element. -
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB.privateTM_Primitive(org.opengis.temporal.TemporalPrimitive metadata) Wraps a Temporal Primitive value at marshalling-time. -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class<org.opengis.temporal.TemporalPrimitive>Returns the GeoAPI interface which is bound by this adapter.final TimeInstantReturns theTimeInstantgenerated from the metadata value.final TimePeriodReturns theTimePeriodgenerated from the metadata value.final voidsetTimeInstant(TimeInstant instant) Sets the value from theTimeInstant.final voidsetTimePeriod(TimePeriod period) Sets the value from theTimePeriod.private static DatetoDate(Context context, TimePeriodBound bound) Returns the date of the given bounds, ornullif none.private static voidwarningOccured(String method, Exception e) Reports a warning for the given exception.protected TM_Primitivewrap(org.opengis.temporal.TemporalPrimitive value) Returns the Vertical CRS value wrapped by a temporal primitive 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_Primitive
public TM_Primitive()Empty constructor for JAXB. -
TM_Primitive
private TM_Primitive(org.opengis.temporal.TemporalPrimitive metadata) Wraps a Temporal Primitive value at marshalling-time.- Parameters:
metadata- the metadata value to marshal.
-
-
Method Details
-
wrap
Returns the Vertical CRS value wrapped by a temporal primitive element.- Specified by:
wrapin classPropertyType<TM_Primitive,org.opengis.temporal.TemporalPrimitive> - 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_Primitive,org.opengis.temporal.TemporalPrimitive> - Returns:
TemporalPrimitive.class
-
getTimePeriod
Returns theTimePeriodgenerated from the metadata value. This method is systematically called at marshalling-time by JAXB.- Returns:
- the time period, or
null.
-
getTimeInstant
Returns theTimeInstantgenerated from the metadata value. This method is systematically called at marshalling-time by JAXB.- Returns:
- the time instant, or
null.
-
setTimePeriod
Sets the value from theTimePeriod. This method is called at unmarshalling-time by JAXB.- Parameters:
period- the wrapper to set.
-
setTimeInstant
Sets the value from theTimeInstant. This method is called at unmarshalling-time by JAXB.- Parameters:
instant- the wrapper to set.
-
toDate
Returns the date of the given bounds, ornullif none. -
warningOccured
Reports a warning for the given exception.- Parameters:
method- the name of the method to declare in the log record.e- the exception.
-