XSD
Class DateTime

java.lang.Object
  |
  +--Datatypes.Datatype
        |
        +--XSD.AnySimpleType
              |
              +--XSD.DateTime
Direct Known Subclasses:
Date

public class DateTime
extends AnySimpleType


Field Summary
 
Fields inherited from class Datatypes.Datatype
nativeValue
 
Constructor Summary
DateTime()
           
DateTime(java.lang.String lform)
           
 
Method Summary
 int compareTo(Datatype value)
          Compares itself to the specified value, returning 0 if they are equal, , a value less than zero if less than the specified value, and a value greater than zero if greater than the specified value.
 boolean equals(Datatype value)
          Compares itself to the specified value, returning true if they are equal or false if they are not equal.
protected  java.util.Date getNativeValue()
           
 boolean isValidForm(java.lang.String lform)
          Returns true if lexical form is valid, else returns false.
 java.lang.String lexicalForm()
          Returns a valid lexical form (string representation) of the value.
 void setValue(java.lang.String lform)
          Sets the value corresponding to the specified lexical form
 
Methods inherited from class Datatypes.Datatype
compare, equal, lookup, register, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTime

public DateTime()

DateTime

public DateTime(java.lang.String lform)
         throws InvalidLexicalForm
Method Detail

compareTo

public final int compareTo(Datatype value)
                    throws InvalidComparison
Description copied from class: Datatype
Compares itself to the specified value, returning 0 if they are equal, , a value less than zero if less than the specified value, and a value greater than zero if greater than the specified value. Throws InvalidComparison if the datatypes of the values cannot be compared (i.e. one is not a subclass of the other) or if no compareTo() method is defined for the datatype class.

Overrides:
compareTo in class Datatype
InvalidComparison

equals

public final boolean equals(Datatype value)
                     throws InvalidComparison
Description copied from class: Datatype
Compares itself to the specified value, returning true if they are equal or false if they are not equal. Throws InvalidComparison if the datatypes of the values cannot be compared (i.e. one is not a subclass of the other) or if no equals() method is defined for the datatype class.

Overrides:
equals in class Datatype
InvalidComparison

lexicalForm

public java.lang.String lexicalForm()
Description copied from class: Datatype
Returns a valid lexical form (string representation) of the value.

Specified by:
lexicalForm in class Datatype

setValue

public void setValue(java.lang.String lform)
              throws InvalidLexicalForm
Description copied from class: Datatype
Sets the value corresponding to the specified lexical form

Specified by:
setValue in class Datatype
InvalidLexicalForm

isValidForm

public boolean isValidForm(java.lang.String lform)
Description copied from class: Datatype
Returns true if lexical form is valid, else returns false.

Specified by:
isValidForm in class Datatype

getNativeValue

protected final java.util.Date getNativeValue()