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


Java ContentModelValidator类代码示例

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


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

示例1: ensureElementDeclCapacity

import com.sun.org.apache.xerces.internal.impl.dtd.models.ContentModelValidator; //导入依赖的package包/类
private void ensureElementDeclCapacity(int chunk) {
    if (chunk >= fElementDeclName.length) {
        fElementDeclIsExternal = resize(fElementDeclIsExternal,
                                 fElementDeclIsExternal.length * 2);

        fElementDeclName = resize(fElementDeclName, fElementDeclName.length * 2);
        fElementDeclType = resize(fElementDeclType, fElementDeclType.length * 2);
        fElementDeclContentModelValidator = resize(fElementDeclContentModelValidator, fElementDeclContentModelValidator.length * 2);
        fElementDeclContentSpecIndex = resize(fElementDeclContentSpecIndex,fElementDeclContentSpecIndex.length * 2);
        fElementDeclFirstAttributeDeclIndex = resize(fElementDeclFirstAttributeDeclIndex, fElementDeclFirstAttributeDeclIndex.length * 2);
        fElementDeclLastAttributeDeclIndex = resize(fElementDeclLastAttributeDeclIndex, fElementDeclLastAttributeDeclIndex.length * 2);
    }
    else if (fElementDeclName[chunk] != null) {
        return;
    }

    fElementDeclIsExternal[chunk] = new int[CHUNK_SIZE];
    fElementDeclName[chunk] = new QName[CHUNK_SIZE];
    fElementDeclType[chunk] = new short[CHUNK_SIZE];
    fElementDeclContentModelValidator[chunk] = new ContentModelValidator[CHUNK_SIZE];
    fElementDeclContentSpecIndex[chunk] = new int[CHUNK_SIZE];
    fElementDeclFirstAttributeDeclIndex[chunk] = new int[CHUNK_SIZE];
    fElementDeclLastAttributeDeclIndex[chunk] = new int[CHUNK_SIZE];
    return;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:DTDGrammar.java

示例2: resize

import com.sun.org.apache.xerces.internal.impl.dtd.models.ContentModelValidator; //导入依赖的package包/类
private static ContentModelValidator[][] resize(ContentModelValidator array[][], int newsize) {
    ContentModelValidator newarray[][] = new ContentModelValidator[newsize][];
    System.arraycopy(array, 0, newarray, 0, array.length);
    return newarray;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:DTDGrammar.java

示例3: setValues

import com.sun.org.apache.xerces.internal.impl.dtd.models.ContentModelValidator; //导入依赖的package包/类
/**
 * setValues
 *
 * @param name
 * @param scope
 * @param type
 * @param contentModelValidator
 * @param simpleType
 */
public void setValues(QName name, int scope, short type, ContentModelValidator contentModelValidator, XMLSimpleType simpleType) {
    this.name.setValues(name);
    this.scope                 = scope;
    this.type                  = type;
    this.contentModelValidator = contentModelValidator;
    this.simpleType.setValues(simpleType);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:XMLElementDecl.java


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