|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.datatypes.XMLDateTime
public class XMLDateTime
This class provides utility functions for comparisons operating on
xml:dateTime datatypes as specified in W3C, XML Schema Part 2:
Datatypes Second Edition Known deviations from the standard: - the range
of years in this implementation is limited to Integer.MIN_VALUE to
Integer.MAX_VALUE for practical reasons - this implementation accepts some
dates that have impossible month, day-of-month combinations (such as
2005-02-29, which was not a leap year)
| Constructor Summary | |
|---|---|
XMLDateTime(String dateTimeString)
Creates a new DateTime object for the supplied xsd:dateTime string value. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(XMLDateTime otherDT)
Compares this DateTime object to another DateTime object. |
boolean |
isNormalized()
Checks whether this object has already been normalized. |
void |
normalize()
Normalizes this dateTime object. |
String |
toString()
Returns the xsd:dateTime string-representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDateTime(String dateTimeString)
dateTimeString - An xsd:dateTime value, for example
1999-05-31T13:20:00-05:00.| Method Detail |
|---|
public boolean isNormalized()
public void normalize()
public String toString()
toString in class Objectpublic int compareTo(XMLDateTime otherDT)
compareTo in interface Comparable<XMLDateTime>ClassCastException - If other is not a DateTime object.public Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||