Java Code Examples for com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl#EMPTY_LIST

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl#EMPTY_LIST . 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: XSModelImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private XSObjectListImpl getGlobalElements() {
    final SymbolHash[] tables = new SymbolHash[fGrammarCount];
    int length = 0;

    for (int i = 0; i < fGrammarCount; i++) {
        tables[i] = fGrammarList[i].fAllGlobalElemDecls;
        length += tables[i].getLength();
    }

    if (length == 0) {
        return XSObjectListImpl.EMPTY_LIST;
    }

    final XSObject[] components = new XSObject[length];

    int start = 0;
    for (int i = 0; i < fGrammarCount; i++) {
        tables[i].getValues(components, start);
        start += tables[i].getLength();
    }

    return new XSObjectListImpl(components, length);
}
 
Example 2
Source File: XSSimpleTypeDecl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public XSFacetImpl(short kind, String value, boolean fixed, XSAnnotation annotation) {
    this.kind = kind;
    this.value = value;
    this.fixed = fixed;

    if (annotation != null) {
        this.annotations = new XSObjectListImpl();
        ((XSObjectListImpl)this.annotations).addXSObject(annotation);
    }
    else {
        this.annotations =  XSObjectListImpl.EMPTY_LIST;
    }
}
 
Example 3
Source File: XSSimpleTypeDecl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public XSFacetImpl(short kind, String value, boolean fixed, XSAnnotation annotation) {
    this.kind = kind;
    this.value = value;
    this.fixed = fixed;

    if (annotation != null) {
        this.annotations = new XSObjectListImpl();
        ((XSObjectListImpl)this.annotations).addXSObject(annotation);
    }
    else {
        this.annotations =  XSObjectListImpl.EMPTY_LIST;
    }
}
 
Example 4
Source File: XSConstraints.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static XSParticleDecl getEmptySequence() {
    if (fEmptyParticle == null) {
        XSModelGroupImpl group = new XSModelGroupImpl();
        group.fCompositor = XSModelGroupImpl.MODELGROUP_SEQUENCE;
        group.fParticleCount = 0;
        group.fParticles = null;
        group.fAnnotations = XSObjectListImpl.EMPTY_LIST;
        XSParticleDecl particle = new XSParticleDecl();
        particle.fType = XSParticleDecl.PARTICLE_MODELGROUP;
        particle.fValue = group;
        particle.fAnnotations = XSObjectListImpl.EMPTY_LIST;
        fEmptyParticle = particle;
    }
    return fEmptyParticle;
}
 
Example 5
Source File: XSAttributeGroupDecl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 6
Source File: XSAttributeGroupDecl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 7
Source File: XSGroupDecl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 8
Source File: SchemaGrammar.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public XSObjectList getAnnotations() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
Example 9
Source File: SchemaGrammar.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public XSObjectList getAnnotations() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
Example 10
Source File: XSElementDecl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 11
Source File: XSSimpleTypeDecl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public XSMVFacetImpl(short kind, StringList values, XSObjectList annotations) {
    this.kind = kind;
    this.values = values;
    this.annotations = (annotations != null) ? annotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 12
Source File: XSAttributeUseImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 13
Source File: XSComplexTypeDecl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Optional. Annotation.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 14
Source File: XSNotationDecl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 15
Source File: XSWildcardDecl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 16
Source File: XSElementDecl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
Example 17
Source File: SchemaGrammar.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public XSObjectList getAnnotations() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
Example 18
Source File: SchemaGrammar.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public XSObjectList getAttributeUses() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
Example 19
Source File: ValidatedInfo.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public XSObjectList getMemberTypeDefinitions() {
    if (memberTypes == null) {
        return XSObjectListImpl.EMPTY_LIST;
    }
    return new XSObjectListImpl(memberTypes, memberTypes.length);
}
 
Example 20
Source File: XSSimpleTypeDecl.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * [annotations]: a set of annotations for this simple type component if
 * it exists, otherwise an empty <code>XSObjectList</code>.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}