deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.commons.types.datetime
Class Date

java.lang.Object
  extended by org.deegree.commons.types.datetime.Date
All Implemented Interfaces:
Comparable<Date>

public class Date
extends Object
implements Comparable<Date>

Represents an xs:date instance.

TODO: currently, syntax checking is performed by DateUtils.parseISO8601Date(String), which does not exactly match the lexical space of the xs:date type. Valid values include: 2001-10-26, 2001-10-26+02:00, 2001-10-26Z, 2001-10-26+00:00, -2001-10-26, or -20000-04-01.

Version:
$Revision: 22129 $, $Date: 2010-01-21 19:03:13 +0100 (Do, 21 Jan 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
Date(String isoDate)
           
 
Method Summary
 int compareTo(Date o)
           
 boolean equals(Object o)
           
 Date getDate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

public Date(String isoDate)
     throws ParseException
Throws:
ParseException
Method Detail

getDate

public Date getDate()

compareTo

public int compareTo(Date o)
Specified by:
compareTo in interface Comparable<Date>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>