FileDocCategorySizeDatePackage
FloatDV.javaAPI DocApache Xerces 3.0.19732Fri Sep 14 20:33:52 BST 2007org.apache.xerces.impl.dv.xs

FloatDV

public class FloatDV extends TypeValidator
Represent the schema type "float"
xerces.internal
author
Neeraj Bajaj, Sun Microsystems, inc.
author
Sandy Gao, IBM
version
$Id: FloatDV.java 572095 2007-09-02 18:32:43Z mrglavas $

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object value1, java.lang.Object value2)

        return ((XFloat)value1).compareTo((XFloat)value2);
    
public java.lang.ObjectgetActualValue(java.lang.String content, org.apache.xerces.impl.dv.ValidationContext context)

        try{
            return new XFloat(content);
        } catch (NumberFormatException ex){
            throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "float"});
        }
    
public shortgetAllowedFacets()

        return ( XSSimpleTypeDecl.FACET_PATTERN | XSSimpleTypeDecl.FACET_WHITESPACE | XSSimpleTypeDecl.FACET_ENUMERATION |XSSimpleTypeDecl.FACET_MAXINCLUSIVE |XSSimpleTypeDecl.FACET_MININCLUSIVE | XSSimpleTypeDecl.FACET_MAXEXCLUSIVE  | XSSimpleTypeDecl.FACET_MINEXCLUSIVE  );
    
public booleanisIdentical(java.lang.Object value1, java.lang.Object value2)

  	 	
        if (value2 instanceof XFloat) {
            return ((XFloat)value1).isIdentical((XFloat)value2);
        }
        return false;