当前位置: 首页>>代码示例>>Java>>正文


Java XSObjectListImpl.EMPTY_LIST属性代码示例

本文整理汇总了Java中com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl.EMPTY_LIST属性的典型用法代码示例。如果您正苦于以下问题:Java XSObjectListImpl.EMPTY_LIST属性的具体用法?Java XSObjectListImpl.EMPTY_LIST怎么用?Java XSObjectListImpl.EMPTY_LIST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl的用法示例。


在下文中一共展示了XSObjectListImpl.EMPTY_LIST属性的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getGlobalElements

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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:XSModelImpl.java

示例2: getMemberTypes

/**
 * If variety is <code>union</code> the list of member type definitions (a
 * non-empty sequence of simple type definitions) is available,
 * otherwise an empty <code>XSObjectList</code>.
 */
public XSObjectList getMemberTypes() {
    if (fVariety == VARIETY_UNION) {
        return new XSObjectListImpl(fMemberTypes, fMemberTypes.length);
    }
    else {
        return XSObjectListImpl.EMPTY_LIST;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:XSSimpleTypeDecl.java

示例3: XSFacetImpl

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;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:XSSimpleTypeDecl.java

示例4: getAnnotations

/**
 * @see org.apache.xerces.xs.XSNamespaceItem#getAnnotations()
 */
public XSObjectList getAnnotations() {
    if (fNumAnnotations == 0) {
        return XSObjectListImpl.EMPTY_LIST;
    }
    return new XSObjectListImpl(fAnnotations, fNumAnnotations);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SchemaGrammar.java

示例5: getEmptySequence

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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:XSConstraints.java

示例6: getAnnotations

/**
 * Optional. Annotations.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:XSParticleDecl.java

示例7: getAnnotations

/**
 * Optional. Annotation.
 */
public XSObjectList getAnnotations() {
    return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:XSComplexTypeDecl.java

示例8: XSMVFacetImpl

public XSMVFacetImpl(short kind, StringList svalues, ObjectList avalues, XSObjectList annotations) {
    this.kind = kind;
    this.svalues = svalues;
    this.avalues = avalues;
    this.annotations = (annotations != null) ? annotations : XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:6,代码来源:XSSimpleTypeDecl.java

示例9: getMemberTypeDefinitions

public XSObjectList getMemberTypeDefinitions() {
    if (memberTypes == null) {
        return XSObjectListImpl.EMPTY_LIST;
    }
    return new XSObjectListImpl(memberTypes, memberTypes.length);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:6,代码来源:ValidatedInfo.java

示例10: getAnnotations

public XSObjectList getAnnotations() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:3,代码来源:SchemaGrammar.java

示例11: getAttributeUses

public XSObjectList getAttributeUses() {
    return XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:3,代码来源:SchemaGrammar.java

示例12: XSMVFacetImpl

public XSMVFacetImpl(short kind, StringList values, XSObjectList annotations) {
    this.kind = kind;
    this.values = values;
    this.annotations = (annotations != null) ? annotations : XSObjectListImpl.EMPTY_LIST;
}
 
开发者ID:infobip,项目名称:infobip-open-jdk-8,代码行数:5,代码来源:XSSimpleTypeDecl.java

示例13: getAnnotations

/**
 * [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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:XSSimpleTypeDecl.java


注:本文中的com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl.EMPTY_LIST属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。