UAProf
Class Dimension
java.lang.Object
|
+--Datatypes.Datatype
|
+--XSD.AnySimpleType
|
+--UAProf.Dimension
- public class Dimension
- extends AnySimpleType
Method Summary |
int |
compareTo(Datatype value)
Returns 0 if both x and y dimensions are equal to those of 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 UAProf.Dimension.NumberPair |
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 |
Dimension
public Dimension()
Dimension
public Dimension(java.lang.String lform)
throws InvalidLexicalForm
compareTo
public final int compareTo(Datatype value)
throws InvalidComparison
- Returns 0 if both x and y dimensions are equal to those of value.
Returns a value less than zero if both x and y dimensions are less than those of value.
Returns a value greater than zero if either x or y dimensions are greater than those of value.
- 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 UAProf.Dimension.NumberPair getNativeValue()