Package com.luciad.format.gml31.model
Class TLcdGML31TimePosition
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.datamodel.TLcdFeaturedDataObject
com.luciad.format.gml31.model.TLcdGML31TimePosition
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,ILcdFeatured
,ILcdSelfDescribedFeatured
,Serializable
,Cloneable
A temporal position.
The method for identifying a temporal position is specific to each temporal reference system. gml:TimePositionType supports the description of temporal position according to the subtypes described in ISO 19108.
Values based on calendars and clocks use lexical formats that are based on ISO 8601, as described in XML Schema Part 2:2001. A decimal value may be used with coordinate systems such as GPS time or UNIX time. A URI may be used to provide a reference to some era in an ordinal reference system .
In common with many of the components modelled as data types in the ISO 19100 series of International Standards, the corresponding GML component has simple content. However, the content model gml:TimePositionType is defined in several steps.
Three XML attributes appear on gml:TimePositionType:
A time value shall be associated with a temporal reference system through the frame attribute that provides a URI reference that identifies a description of the reference system. Following ISO 19108, the Gregorian calendar with UTC is the default reference system, but others may also be used. Components for describing temporal reference systems are described in 14.4, but it is not required that the reference system be described in this, as the reference may refer to anything that may be indentified with a URI.
For time values using a calendar containing more than one era, the (optional) calendarEraName attribute provides the name of the calendar era.
Inexact temporal positions may be expressed using the optional indeterminatePosition attribute. This takes a value from an enumeration.
- Since:
- 10.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thecalendarEraName
attribute.static final TLcdDataProperty
Data property that maps to theframe
attribute.static final TLcdDataProperty
Data property that maps to theindeterminatePosition
attribute.static final TLcdDataProperty
Data property that maps to the value defined by the simple content. -
Constructor Summary
ConstructorDescriptionCreates a new time position.TLcdGML31TimePosition
(ELcdGML31TimeIndeterminateValue aTimeIndeterminateValue) Creates a new time position based on the given indeterminate value.TLcdGML31TimePosition
(XMLGregorianCalendar aGregorianCalendar) Creates a new time position based on the given calendar. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to thecalendarEraName
attribute.getFrame()
Returns the value of the property that maps to theframe
attribute.Returns the value of the property that maps to theindeterminatePosition
attribute.Returns the value of the property that maps to the value defined by the simple content.void
setCalendarEraName
(String aValue) Sets the value of the property that maps to thecalendarEraName
attribute.void
Sets the value of the property that maps to theframe
attribute.void
Sets the value of the property that maps to theindeterminatePosition
attribute.void
setValueObject
(Object aValue) Sets the value of the property that maps to the value defined by the simple content.Methods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeature
-
Field Details
-
VALUE_PROPERTY
Data property that maps to the value defined by the simple content. The possible values for this property are instances ofXMLGregorianCalendar
URI
double
-
CALENDAR_ERA_NAME_PROPERTY
Data property that maps to thecalendarEraName
attribute. The possible values for this property are instances ofString
. -
FRAME_PROPERTY
Data property that maps to theframe
attribute. The possible values for this property are instances ofURI
. -
INDETERMINATE_POSITION_PROPERTY
Data property that maps to theindeterminatePosition
attribute. The possible values for this property are instances ofELcdGML31TimeIndeterminateValue
.
-
-
Constructor Details
-
TLcdGML31TimePosition
-
TLcdGML31TimePosition
public TLcdGML31TimePosition()Creates a new time position. -
TLcdGML31TimePosition
Creates a new time position based on the given calendar.- Parameters:
aGregorianCalendar
- the value object of this time position- Since:
- 2017.0
-
TLcdGML31TimePosition
Creates a new time position based on the given indeterminate value.- Parameters:
aTimeIndeterminateValue
- the indeterminate value of this time position- Since:
- 2017.0
-
-
Method Details
-
getValueObject
Returns the value of the property that maps to the value defined by the simple content.The possible values for this property are instances of
XMLGregorianCalendar
URI
double
- Returns:
- the value of the
VALUE_PROPERTY
property.
-
setValueObject
Sets the value of the property that maps to the value defined by the simple content.The possible values for this property are instances of
XMLGregorianCalendar
URI
double
- Parameters:
aValue
- the value to set for theVALUE_PROPERTY
property.
-
getCalendarEraName
Returns the value of the property that maps to thecalendarEraName
attribute.- Returns:
- the value of the
CALENDAR_ERA_NAME_PROPERTY
property.
-
setCalendarEraName
Sets the value of the property that maps to thecalendarEraName
attribute.- Parameters:
aValue
- the value to set for theCALENDAR_ERA_NAME_PROPERTY
property.
-
getFrame
Returns the value of the property that maps to theframe
attribute.- Returns:
- the value of the
FRAME_PROPERTY
property.
-
setFrame
Sets the value of the property that maps to theframe
attribute.- Parameters:
aValue
- the value to set for theFRAME_PROPERTY
property.
-
getIndeterminatePosition
Returns the value of the property that maps to theindeterminatePosition
attribute.- Returns:
- the value of the
INDETERMINATE_POSITION_PROPERTY
property.
-
setIndeterminatePosition
Sets the value of the property that maps to theindeterminatePosition
attribute.- Parameters:
aValue
- the value to set for theINDETERMINATE_POSITION_PROPERTY
property.
-