com.sun.org.apache.xerces.internal.impl.xs.XSWildcardDecl Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.XSWildcardDecl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XSDFACM.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #2
Source File: XSDFACM.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #3
Source File: XSDFACM.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #4
Source File: XSDFACM.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #5
Source File: XSDFACM.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #6
Source File: XSDFACM.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #7
Source File: XSDFACM.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #8
Source File: XSDFACM.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #9
Source File: XSDFACM.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #10
Source File: XSDFACM.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #11
Source File: XSDFACM.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
Object findMatchingDecl(QName curElem, SubstitutionGroupHandler subGroupHandler) {
    Object matchingDecl = null;

    for (int elemIndex = 0; elemIndex < fElemMapSize; elemIndex++) {
        int type = fElemMapType[elemIndex] ;
        if (type == XSParticleDecl.PARTICLE_ELEMENT) {
            matchingDecl = subGroupHandler.getMatchingElemDecl(curElem, (XSElementDecl)fElemMap[elemIndex]);
            if (matchingDecl != null) {
                return matchingDecl;
            }
        }
        else if (type == XSParticleDecl.PARTICLE_WILDCARD) {
            if(((XSWildcardDecl)fElemMap[elemIndex]).allowNamespace(curElem.uri))
                return fElemMap[elemIndex];
        }
    }

    return null;
}
 
Example #12
Source File: XSDComplexTypeTraverser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #13
Source File: XSDWildcardTraverser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #14
Source File: XSDComplexTypeTraverser.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #15
Source File: XSDWildcardTraverser.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #16
Source File: XSDWildcardTraverser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #17
Source File: XSDComplexTypeTraverser.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #18
Source File: XSDComplexTypeTraverser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #19
Source File: XSDWildcardTraverser.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #20
Source File: XSDWildcardTraverser.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #21
Source File: XSDComplexTypeTraverser.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #22
Source File: XSDWildcardTraverser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #23
Source File: XSDWildcardTraverser.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #24
Source File: XSDComplexTypeTraverser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #25
Source File: XSDWildcardTraverser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #26
Source File: XSDComplexTypeTraverser.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #27
Source File: XSDComplexTypeTraverser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #28
Source File: XSDComplexTypeTraverser.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private static XSWildcardDecl getErrorWildcard() {
    if (fErrorWildcard == null) {
        XSWildcardDecl wildcard = new XSWildcardDecl();
        wildcard.fProcessContents = XSWildcardDecl.PC_SKIP;
        fErrorWildcard = wildcard;
    }
    return fErrorWildcard;
}
 
Example #29
Source File: XSDWildcardTraverser.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}
 
Example #30
Source File: XSDWildcardTraverser.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Traverse &lt;anyAttribute&gt;
 *
 * @param  elmNode
 * @param  schemaDoc
 * @param  grammar
 * @return the wildcard node index
 */
XSWildcardDecl traverseAnyAttribute(Element elmNode,
        XSDocumentInfo schemaDoc,
        SchemaGrammar grammar) {

    // General Attribute Checking for elmNode
    Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc);
    XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar);
    fAttrChecker.returnAttrArray(attrValues, schemaDoc);

    return wildcard;
}