org.geotools.temporal.object
Class DefaultPosition

java.lang.Object
  extended by org.geotools.temporal.object.DefaultPosition
All Implemented Interfaces:
org.opengis.temporal.Position

public class DefaultPosition
extends java.lang.Object
implements org.opengis.temporal.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
DefaultPosition(java.util.Date date)
           
DefaultPosition(org.opengis.util.InternationalString datetime)
          This constructor replace the constructor with further DateTime object which will be included in the futur version of jdk (jdk7).
DefaultPosition(org.opengis.temporal.TemporalPosition anyOther)
          This constructor set the position property as a TemporalPosition.
 
Method Summary
 org.opengis.temporal.TemporalPosition 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.
 boolean equals(java.lang.Object object)
          Verify if this entry is identical to the specified object.
 java.util.Date getDate()
          May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.
 org.opengis.util.InternationalString getDateTime()
          May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.
 java.sql.Time getTime()
          May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPosition

public DefaultPosition(java.util.Date date)

DefaultPosition

public DefaultPosition(org.opengis.util.InternationalString datetime)
                throws java.text.ParseException
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.

Parameters:
dateTime -
Throws:
java.text.ParseException

DefaultPosition

public DefaultPosition(org.opengis.temporal.TemporalPosition anyOther)
This constructor set the position property as a TemporalPosition.

Parameters:
anyOther -
Method Detail

anyOther

public org.opengis.temporal.TemporalPosition 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.

Specified by:
anyOther in interface org.opengis.temporal.Position
Returns:
TemporalPosition

getDate

public java.util.Date getDate()
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.

Specified by:
getDate in interface org.opengis.temporal.Position
Returns:
InternationalString

getTime

public java.sql.Time getTime()
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.

Specified by:
getTime in interface org.opengis.temporal.Position
Returns:
InternationalString

getDateTime

public org.opengis.util.InternationalString getDateTime()
May be used for describing temporal positions in ISO8601 format referenced to the Gregorian calendar and UTC.

Specified by:
getDateTime in interface org.opengis.temporal.Position
Returns:
InternationalString

equals

public boolean equals(java.lang.Object object)
Verify if this entry is identical to the specified object.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.