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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thecalendarEraNameattribute.static final TLcdDataPropertyData property that maps to theframeattribute.static final TLcdDataPropertyData property that maps to theindeterminatePositionattribute.static final TLcdDataPropertyData property that maps to the value defined by the simple content. -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 thecalendarEraNameattribute.getFrame()Returns the value of the property that maps to theframeattribute.Returns the value of the property that maps to theindeterminatePositionattribute.Returns the value of the property that maps to the value defined by the simple content.voidsetCalendarEraName(String aValue) Sets the value of the property that maps to thecalendarEraNameattribute.voidSets the value of the property that maps to theframeattribute.voidSets the value of the property that maps to theindeterminatePositionattribute.voidsetValueObject(Object aValue) Sets the value of the property that maps to the value defined by the simple content.toString()Methods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
VALUE_PROPERTY
Data property that maps to the value defined by the simple content. The possible values for this property are instances ofXMLGregorianCalendarURIdouble
-
CALENDAR_ERA_NAME_PROPERTY
Data property that maps to thecalendarEraNameattribute. The possible values for this property are instances ofString. -
FRAME_PROPERTY
Data property that maps to theframeattribute. The possible values for this property are instances ofURI. -
INDETERMINATE_POSITION_PROPERTY
Data property that maps to theindeterminatePositionattribute. 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
-
toString
- Overrides:
toStringin classTLcdDataObject
-
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
XMLGregorianCalendarURIdouble
- Returns:
- the value of the
VALUE_PROPERTYproperty.
-
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
XMLGregorianCalendarURIdouble
- Parameters:
aValue- the value to set for theVALUE_PROPERTYproperty.
-
getCalendarEraName
Returns the value of the property that maps to thecalendarEraNameattribute.- Returns:
- the value of the
CALENDAR_ERA_NAME_PROPERTYproperty.
-
setCalendarEraName
Sets the value of the property that maps to thecalendarEraNameattribute.- Parameters:
aValue- the value to set for theCALENDAR_ERA_NAME_PROPERTYproperty.
-
getFrame
Returns the value of the property that maps to theframeattribute.- Returns:
- the value of the
FRAME_PROPERTYproperty.
-
setFrame
Sets the value of the property that maps to theframeattribute.- Parameters:
aValue- the value to set for theFRAME_PROPERTYproperty.
-
getIndeterminatePosition
Returns the value of the property that maps to theindeterminatePositionattribute.- Returns:
- the value of the
INDETERMINATE_POSITION_PROPERTYproperty.
-
setIndeterminatePosition
Sets the value of the property that maps to theindeterminatePositionattribute.- Parameters:
aValue- the value to set for theINDETERMINATE_POSITION_PROPERTYproperty.
-