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


Java XSObjectListImpl类代码示例

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


XSObjectListImpl类属于com.sun.org.apache.xerces.internal.impl.xs.util包,在下文中一共展示了XSObjectListImpl类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setValues

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
public void setValues(String name, String targetNamespace,
         XSTypeDefinition baseType, short derivedBy, short schemaFinal,
         short block, short contentType,
         boolean isAbstract, XSAttributeGroupDecl attrGrp,
         XSSimpleType simpleType, XSParticleDecl particle,
         XSObjectListImpl annotations) {
     fTargetNamespace = targetNamespace;
     fBaseType = baseType;
     fDerivedBy = derivedBy;
     fFinal = schemaFinal;
     fBlock = block;
     fContentType = contentType;
     if(isAbstract)
         fMiscFlags |= CT_IS_ABSTRACT;
     fAttrGrp = attrGrp;
     fXSSimpleType = simpleType;
     fParticle = particle;
     fAnnotations = annotations;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:XSComplexTypeDecl.java

示例2: buildSubGroups_Org

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
private SymbolHash buildSubGroups_Org() {
    SubstitutionGroupHandler sgHandler = new SubstitutionGroupHandler(null);
    for (int i = 0 ; i < fGrammarCount; i++) {
        sgHandler.addSubstitutionGroup(fGrammarList[i].getSubstitutionGroups());
    }

    final XSNamedMap elements = getComponents(XSConstants.ELEMENT_DECLARATION);
    final int len = elements.getLength();
    final SymbolHash subGroupMap = new SymbolHash(len*2);
    XSElementDecl head;
    XSElementDeclaration[] subGroup;
    for (int i = 0; i < len; i++) {
        head = (XSElementDecl)elements.item(i);
        subGroup = sgHandler.getSubstitutionGroup(head);
        subGroupMap.put(head, subGroup.length > 0 ?
                new XSObjectListImpl(subGroup, subGroup.length) : XSObjectListImpl.EMPTY_LIST);
    }
    return subGroupMap;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:XSModelImpl.java

示例3: buildSubGroups

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
private SymbolHash buildSubGroups() {
    SubstitutionGroupHandler sgHandler = new SubstitutionGroupHandler(null);
    for (int i = 0 ; i < fGrammarCount; i++) {
        sgHandler.addSubstitutionGroup(fGrammarList[i].getSubstitutionGroups());
    }

    final XSObjectListImpl elements = getGlobalElements();
    final int len = elements.getLength();
    final SymbolHash subGroupMap = new SymbolHash(len*2);
    XSElementDecl head;
    XSElementDeclaration[] subGroup;
    for (int i = 0; i < len; i++) {
        head = (XSElementDecl)elements.item(i);
        subGroup = sgHandler.getSubstitutionGroup(head);
        subGroupMap.put(head, subGroup.length > 0 ?
                new XSObjectListImpl(subGroup, subGroup.length) : XSObjectListImpl.EMPTY_LIST);
    }
    return subGroupMap;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:XSModelImpl.java

示例4: getGlobalElements

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
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:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:XSModelImpl.java

示例5: getMemberTypes

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
/**
 * 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,代码行数:14,代码来源:XSSimpleTypeDecl.java

示例6: XSFacetImpl

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
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,代码行数:14,代码来源:XSSimpleTypeDecl.java

示例7: getAnnotations

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
/**
 * @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,代码行数:10,代码来源:SchemaGrammar.java

示例8: getEmptySequence

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
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,代码行数:16,代码来源:XSConstraints.java

示例9: XSFacetImpl

import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl; //导入依赖的package包/类
public XSFacetImpl(short kind, String svalue, int ivalue, Object avalue, boolean fixed, XSAnnotation annotation) {
    this.kind = kind;
    this.svalue = svalue;
    this.ivalue = ivalue;
    this.avalue = avalue;
    this.fixed = fixed;

    if (annotation != null) {
        this.annotations = new XSObjectListImpl();
        ((XSObjectListImpl)this.annotations).addXSObject(annotation);
    }
    else {
        this.annotations =  XSObjectListImpl.EMPTY_LIST;
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:XSSimpleTypeDecl.java


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