com.thaiopensource.datatype.xsd
Class DoubleDatatype
java.lang.Object
com.thaiopensource.datatype.xsd.DatatypeBase
com.thaiopensource.datatype.xsd.DoubleDatatype
- All Implemented Interfaces:
- Datatype2, OrderRelation, Datatype
- Direct Known Subclasses:
- FloatDatatype
class DoubleDatatype
- extends DatatypeBase
- implements OrderRelation
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase |
allowsValue, alwaysValid, checkValid, createStreamingValidator, createValue, getIdType, getMeasure, getPrimitive, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace, valueHashCode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleDatatype
DoubleDatatype()
lexicallyAllows
boolean lexicallyAllows(String str)
- Specified by:
lexicallyAllows
in class DatatypeBase
getValue
Object getValue(String str,
ValidationContext vc)
- Specified by:
getValue
in class DatatypeBase
getOrderRelation
OrderRelation getOrderRelation()
- Overrides:
getOrderRelation
in class DatatypeBase
isLessThan
public boolean isLessThan(Object obj1,
Object obj2)
- Specified by:
isLessThan
in interface OrderRelation
sameValue
public boolean sameValue(Object value1,
Object value2)
- Description copied from interface:
Datatype
- Tests the equality of two value objects which were originally
created by the createValue method of this object.
The behavior is undefined if objects not created by this type
are passed. It is the caller's responsibility to ensure that
value objects belong to this type.
- Specified by:
sameValue
in interface Datatype
- Overrides:
sameValue
in class DatatypeBase
- Returns:
- true if two value objects are considered equal according to
the definition of this datatype; false if otherwise.