Package org.apache.xerces.validators.common

Examples of org.apache.xerces.validators.common.XMLElementDecl


        TraverseSchema.ComplexTypeInfo aComplexType = sGrammar.getElementComplexTypeInfo(anElementIndex);
        // elementIndex contains the index of the substitutionGroup head
        int exemplarBlockSet = sGrammar.getElementDeclBlockSet(elementIndex);
        if(aComplexType == null) {
            // check on simpleType case
            XMLElementDecl anElementDecl = new XMLElementDecl();
            sGrammar.getElementDecl(anElementIndex, anElementDecl);
            DatatypeValidator anElementDV = anElementDecl.datatypeValidator;
            XMLElementDecl exemplarDecl = new XMLElementDecl();
            sGrammar.getElementDecl(elementIndex, exemplarDecl);
            DatatypeValidator exemplarDV = exemplarDecl.datatypeValidator;
            return((anElementDV == null) ||
                ((anElementDV == exemplarDV) ||
                ((exemplarBlockSet & SchemaSymbols.RESTRICTION) == 0)));
View Full Code Here


            int devMethod = 0, pDevMethod = 0;

            TraverseSchema.ComplexTypeInfo subTypeInfo = sGrammar.getElementComplexTypeInfo(subElementIndex);
            if (subTypeInfo == null) {
                // for simple type, we compare the datatypeValidators
                XMLElementDecl tmpElementDecl = new XMLElementDecl();
                sGrammar.getElementDecl(subElementIndex, tmpElementDecl);
                DatatypeValidator subElementDV = tmpElementDecl.datatypeValidator;
                getElementDecl(elementDeclIndex, tmpElementDecl);
                DatatypeValidator elementDV = tmpElementDecl.datatypeValidator;
                if (subElementDV != null && subElementDV != elementDV)
View Full Code Here

                for(; j<i && !fMatched[j]; j++);
                if (j<i) continue;
                if (fBufferContent) {
                    fBufferContent = false;
                    fMatchedString = fMatchedBuffer.toString();
                    XMLElementDecl temp = new XMLElementDecl();
                    grammar.getElementDecl(eIndex, temp);
                    DatatypeValidator val = temp.datatypeValidator;
                    if(temp != null) {
                        matched(fMatchedString, val, (grammar.getElementDeclMiscFlags(eIndex) & SchemaSymbols.NILLABLE) != 0);
                    } else
View Full Code Here

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEY) ) {
View Full Code Here

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEYREF) ) {
View Full Code Here

        Element ic = XUtil.getFirstChildElement(elementDecl, IDENTITY_CONSTRAINTS);
        Vector idConstraints = null;
       
        if (ic != null) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            while (ic != null){
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEY) ) {
                    traverseKey(ic, edecl);
View Full Code Here

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEY) ) {
View Full Code Here

                    //       avoid duplicating code. -Ac
                }
                case XPath.Axis.SELF: {
                    // look up validator, if needed
                    if (i == fsteps.length - 1) {
                        XMLElementDecl edecl = new XMLElementDecl();
                        fSchemaGrammar.getElementDecl(edeclIndex, edecl);
                        if (edecl.type != XMLElementDecl.TYPE_SIMPLE) {
                            // REVISIT: Add message. -Ac
                            reportGenericSchemaError("selected element is not of simple type");
                            return null;
View Full Code Here

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEY) ) {
View Full Code Here

        // iterate over identity constraints for this element
        int size = identityConstraints != null ? identityConstraints.size() : 0;
        if (size > 0) {
            // REVISIT: Use cached copy. -Ac
            XMLElementDecl edecl = new XMLElementDecl();
            fSchemaGrammar.getElementDecl(elementIndex, edecl);
            for (int i = 0; i < size; i++) {
                Element ic = (Element)identityConstraints.elementAt(i);
                String icName = ic.getLocalName();
                if ( icName.equals(SchemaSymbols.ELT_KEYREF) ) {
View Full Code Here

TOP

Related Classes of org.apache.xerces.validators.common.XMLElementDecl

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.