XSD
Class Boolean
java.lang.Object
|
+--Datatypes.Datatype
|
+--XSD.AnySimpleType
|
+--XSD.Boolean
- Direct Known Subclasses:
- Boolean
- public class Boolean
- extends AnySimpleType
Method Summary |
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.Integer |
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 |
Boolean
public Boolean()
Boolean
public Boolean(java.lang.String lform)
throws InvalidLexicalForm
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.Integer getNativeValue()