Package org.apache.sis.internal.jaxb.gml
Class TimeInstant
java.lang.Object
org.apache.sis.internal.jaxb.gml.GMLAdapter
org.apache.sis.internal.jaxb.gml.TimeInstant
Encapsulates a
gml:TimeInstant
. This element may be used alone, or included in a
TimePeriodBound.GML2
object. The latter is itself included in TimePeriod
.
Note that GML3 does not anymore include TimeInstant
inside TimePeriod
.- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe date, optionally with its time component. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor used by JAXB.TimeInstant
(Instant instant) Creates a new time instant initialized to the given value. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns a string representation for debugging and formatting error message.(package private) static XMLGregorianCalendar
Creates a XML Gregorian Calendar from the given instants, if non-null.Methods inherited from class org.apache.sis.internal.jaxb.gml.GMLAdapter
copyIdTo
-
Field Details
-
timePosition
The date, optionally with its time component. The time component is omitted if the hours, minutes, seconds and milliseconds fields are all set to 0.WARNING: The timezone information may be lost! This is because this field is derived from a
Date
, in which case we don't know if the time is really 0 or just unspecified. This class assumes that a time of zero means "unspecified". This will be revised after we implemented ISO 19108.
-
-
Constructor Details
-
TimeInstant
public TimeInstant()Empty constructor used by JAXB. -
TimeInstant
Creates a new time instant initialized to the given value.- Parameters:
instant
- the initial instant value.
-
-
Method Details
-
toXML
Creates a XML Gregorian Calendar from the given instants, if non-null. Otherwise returnsnull
.WARNING: The timezone information may be lost! This is because this field is derived from a
Date
, in which case we don't know if the time is really 0 or just unspecified. This class assumes that a time of zero means "unspecified". This will be revised after we implemented ISO 19108. -
toString
Returns a string representation for debugging and formatting error message.
-