XSD
Class String
java.lang.Object
|
+--Datatypes.Datatype
|
+--XSD.AnySimpleType
|
+--XSD.String
- Direct Known Subclasses:
- NormalizedString
- public class String
- extends AnySimpleType
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.lang.String |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
String
public String()
String
public String(java.lang.String lform)
throws InvalidLexicalForm
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.lang.String getNativeValue()