|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.datatypes.xsd.AbstractDateTime
public class AbstractDateTime
Base class for representation of XSD duration, time, date/time and related datatype instances. We are using the Xerces internal packages for the all heavy lifting which represent date/times using an int array. These wrapper classes just provide more convenient access to the date values.
This class includes code derived from Xerces 2.6.0 Copyright (c) 1999-2002 The Apache Software Foundation. All rights reserved.
Field Summary | |
---|---|
static short |
EQUAL
constant to indicate an equals relationship from compare() |
static short |
GREATER_THAN
constant to indicate a greater than relationship from compare() |
static short |
INDETERMINATE
constant to indicate an indeterminate relationship from compare() |
static short |
LESS_THAN
constant to indicate a less than relationship from compare() |
Constructor Summary | |
---|---|
AbstractDateTime(Object value)
Constructor |
Method Summary | |
---|---|
int |
compare(AbstractDateTime other)
Comparison function. |
int |
compareTo(AbstractDateTime o)
Normal java comparison function. |
boolean |
equals(Object obj)
Equality function |
int |
hashCode()
hash function |
static void |
normalize(int[] date,
int[] timeZone)
If timezone present - normalize dateTime [E Adding durations to dateTimes] Public to allow reuse with type objects. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short LESS_THAN
public static final short EQUAL
public static final short GREATER_THAN
public static final short INDETERMINATE
Constructor Detail |
---|
public AbstractDateTime(Object value)
value
- the date/time value returned by the parsingMethod Detail |
---|
public int compare(AbstractDateTime other)
other
- the time/date to compare to
public int compareTo(AbstractDateTime o)
compareTo
in interface Comparable<AbstractDateTime>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static void normalize(int[] date, int[] timeZone)
date
- CCYY-MM-DDThh:mm:ss+03
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |