FileDocCategorySizeDatePackage
BooleanDV.javaAPI DocApache Xerces 3.0.11881Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.dv.xs

BooleanDV

public class BooleanDV extends TypeValidator
Represent the schema type "boolean"
xerces.internal
author
Neeraj Bajaj, Sun Microsystems, inc.
author
Sandy Gao, IBM
version
$Id: BooleanDV.java 469063 2006-10-30 04:44:22Z mrglavas $

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectgetActualValue(java.lang.String content, org.apache.xerces.impl.dv.ValidationContext context)

        if ("false".equals(content) || "0".equals(content)) {
            return Boolean.FALSE;
        }
        else if ("true".equals(content) || "1".equals(content)) {
            return Boolean.TRUE;
        }
        throw new InvalidDatatypeValueException("cvc-datatype-valid.1.2.1", new Object[]{content, "boolean"});
    
public shortgetAllowedFacets()

        return (XSSimpleTypeDecl.FACET_PATTERN | XSSimpleTypeDecl.FACET_WHITESPACE);