com.sun.org.apache.xerces.internal.xs.XSParticle Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.xs.XSParticle. 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: SchemaGrammar.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #2
Source File: SchemaGrammar.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #3
Source File: SchemaGrammar.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #4
Source File: SchemaGrammar.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #5
Source File: SchemaGrammar.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #6
Source File: SchemaGrammar.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #7
Source File: SchemaGrammar.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #8
Source File: SchemaGrammar.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #9
Source File: SchemaGrammar.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public XSParticle getParticle() {
    // the wildcard used in anyType (content and attribute)
    // the spec will change strict to skip for anyType
    XSWildcardDecl wildcard = new XSWildcardDecl();
    wildcard.fProcessContents = XSWildcardDecl.PC_LAX;
    // the particle for the content wildcard
    XSParticleDecl particleW = new XSParticleDecl();
    particleW.fMinOccurs = 0;
    particleW.fMaxOccurs = SchemaSymbols.OCCURRENCE_UNBOUNDED;
    particleW.fType = XSParticleDecl.PARTICLE_WILDCARD;
    particleW.fValue = wildcard;
    // the model group of a sequence of the above particle
    XSModelGroupImpl group = new XSModelGroupImpl();
    group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
    group.fParticleCount = 1;
    group.fParticles = new XSParticleDecl[1];
    group.fParticles[0] = particleW;
    // the content of anyType: particle of the above model group
    XSParticleDecl particleG = new XSParticleDecl();
    particleG.fType = XSParticleDecl.PARTICLE_MODELGROUP;
    particleG.fValue = group;

    return particleG;
}
 
Example #10
Source File: XSDHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #11
Source File: XSDHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #12
Source File: XSDHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #13
Source File: XSDHandler.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #14
Source File: XSDHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #15
Source File: XSDHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #16
Source File: XSDHandler.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #17
Source File: XSDHandler.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #18
Source File: XSDHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #19
Source File: XSDHandler.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #20
Source File: XSDHandler.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #21
Source File: XSDHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #22
Source File: XSDHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #23
Source File: XSDHandler.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #24
Source File: XSDHandler.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #25
Source File: XSDHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #26
Source File: XSDHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}
 
Example #27
Source File: XSDHandler.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #28
Source File: XSDHandler.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
    addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
    expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
    final XSParticle particle = type.getParticle();
    if (particle != null) {
        expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
    }
}
 
Example #29
Source File: XSDHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedModelGroupComponents(XSModelGroup modelGroup, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSObjectList particles = modelGroup.getParticles();
    final int length = (particles == null) ? 0 : particles.getLength();
    for (int i=0; i<length; i++) {
        expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
    }
}
 
Example #30
Source File: XSDHandler.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void expandRelatedParticleComponents(XSParticle component, Vector componentList,
        String namespace, Map<String, Vector> dependencies) {
    XSTerm term = component.getTerm();
    switch (term.getType()) {
    case XSConstants.ELEMENT_DECLARATION :
        addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
        break;
    case XSConstants.MODEL_GROUP :
        expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
        break;
    default:
        break;
    }
}