• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java XSObjectListImpl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DescribeInstanceAttributeRequest类代码示例发布时间:2022-05-23
下一篇:
Java CaffeineSpec类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap