Package org.geotools.temporal.object
Class DefaultPosition
Object
DefaultPosition
- All Implemented Interfaces:
Position
A union class that consists of one of the data types listed as its attributes. Date, Time, and DateTime are basic
data types defined in ISO/TS 19103, and may be used for describing temporal positions referenced to the Gregorian
calendar and UTC.
- Author:
- Mehdi Sidhoum (Geomatys)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPosition
(Date date) DefaultPosition
(TemporalPosition anyOther) This constructor set the position property as a TemporalPosition.DefaultPosition
(InternationalString datetime) This constructor replace the constructor with further DateTime object which will be included in the futur version of jdk (jdk7). example of datetime argument: format specified by the ISO8601 yyyy-mm-DDTHH:MM:SSZ - example : 2003-02-13T12:28:00.000GMT-08:00. -
Method Summary
Modifier and TypeMethodDescriptionanyOther()
TemporalPosition and its subtypes shall be used for describing temporal positions referenced to other reference systems, and may be used for temporal positions referenced to any calendar or clock, including the Gregorian calendar and UTC.boolean
Verify if this entry is identical to the specified object.getDate()
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.getTime()
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.int
hashCode()
toString()
-
Constructor Details
-
DefaultPosition
-
DefaultPosition
This constructor replace the constructor with further DateTime object which will be included in the futur version of jdk (jdk7). example of datetime argument: format specified by the ISO8601 yyyy-mm-DDTHH:MM:SSZ - example : 2003-02-13T12:28:00.000GMT-08:00.- Throws:
ParseException
-
DefaultPosition
This constructor set the position property as a TemporalPosition.
-
-
Method Details
-
anyOther
TemporalPosition and its subtypes shall be used for describing temporal positions referenced to other reference systems, and may be used for temporal positions referenced to any calendar or clock, including the Gregorian calendar and UTC. -
getDate
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.- Specified by:
getDate
in interfacePosition
- Returns:
- InternationalString @TODO all subtypes of TemporalPosition must be implemented.
-
getTime
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.- Specified by:
getTime
in interfacePosition
- Returns:
- InternationalString
-
getDateTime
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.- Specified by:
getDateTime
in interfacePosition
- Returns:
- InternationalString
-
equals
Verify if this entry is identical to the specified object. -
hashCode
public int hashCode() -
toString
-