com.thaiopensource.datatype.xsd
Class FloatDatatype

java.lang.Object
  extended by com.thaiopensource.datatype.xsd.DatatypeBase
      extended by com.thaiopensource.datatype.xsd.DoubleDatatype
          extended by com.thaiopensource.datatype.xsd.FloatDatatype
All Implemented Interfaces:
Datatype2, OrderRelation, Datatype

 class FloatDatatype
extends DoubleDatatype


Field Summary
 
Fields inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
WHITE_SPACE_COLLAPSE, WHITE_SPACE_PRESERVE, WHITE_SPACE_REPLACE
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
FloatDatatype()
           
 
Method Summary
(package private)  Object getValue(String str, ValidationContext vc)
           
 boolean isLessThan(Object obj1, Object obj2)
           
 boolean sameValue(Object value1, Object value2)
          Tests the equality of two value objects which were originally created by the createValue method of this object.
 
Methods inherited from class com.thaiopensource.datatype.xsd.DoubleDatatype
getOrderRelation, lexicallyAllows
 
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
 

Constructor Detail

FloatDatatype

FloatDatatype()
Method Detail

getValue

Object getValue(String str,
                ValidationContext vc)
Overrides:
getValue in class DoubleDatatype

isLessThan

public boolean isLessThan(Object obj1,
                          Object obj2)
Specified by:
isLessThan in interface OrderRelation
Overrides:
isLessThan in class DoubleDatatype

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 DoubleDatatype
Returns:
true if two value objects are considered equal according to the definition of this datatype; false if otherwise.