org.deegree.commons.tom.datetime
Class Date

java.lang.Object
  extended by org.deegree.commons.tom.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: 27849 $, $Date: 2010-11-08 19:43:49 +0100 (Mon, 08 Nov 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()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Date

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

getDate

public Date getDate()
Returns:
the wrapped date

compareTo

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.