Package org.apache.xerces.impl.dv.xs

Examples of org.apache.xerces.impl.dv.xs.DatatypeValidator


        // As always we are obliged to compare by reference...
        if (fValidator == value.fValidator) {
            return ((fValidator.compare(fValue, value.fValue)) == 0);
        }
        // see if this.fValidator is derived from value.fValidator:
        DatatypeValidator tempVal;
        for(tempVal = fValidator; tempVal == null || tempVal == value.fValidator; tempVal = tempVal.getBaseValidator());
        if(tempVal != null) { // was derived!
            return ((value.fValidator.compare(fValue, value.fValue)) == 0);
        }
        // see if value.fValidator is derived from this.fValidator:
        for(tempVal = value.fValidator; tempVal == null || tempVal == fValidator; tempVal = tempVal.getBaseValidator());
        if(tempVal != null) { // was derived!
            return ((fValidator.compare(fValue, value.fValue)) == 0);
        }
        // if we're here it means the types weren't related.  Must fall back to strings:
        return(fValue.equals(value.fValue));
View Full Code Here


                                    String avalue = attributes.getValue(aindex);
                                    fMatchedString = avalue;
                                    // now, we have to go on the hunt for
                                    // datatype validator; not an easy or pleasant task...

                                    DatatypeValidator aValidator = null;
                                    if (attrGrp != null) {
                                      XSAttributeUse tempAttUse = attrGrp.getAttributeUse(aname.uri, aname.localpart);
                                      if (tempAttUse != null) {
                                        XSAttributeDecl tempAttDecl = tempAttUse.fAttrDecl;
                                        aValidator = tempAttDecl.fType;
View Full Code Here

                    fBufferContent = false;
                    fMatchedString = fMatchedBuffer.toString();
                    // REVISIT: cache this.
                    // REVISIT:  make sure type's from same schema!
                    // REVISIT:  make sure type is simple!
                    DatatypeValidator val=null;

                    if (eDecl!=null) {
                      XSTypeDecl type = eDecl.fType;
                      if (type != null) {
                        if (type.getXSType() == XSTypeDecl.COMPLEX_TYPE) {
View Full Code Here

TOP

Related Classes of org.apache.xerces.impl.dv.xs.DatatypeValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.