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


Java StringListImpl类代码示例

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


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

示例1: getFieldStrs

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * {fields} A non-empty list of restricted XPath ([XPath]) expressions.
 */
public StringList getFieldStrs() {
    String[] strs = new String[fFieldCount];
    for (int i = 0; i < fFieldCount; i++)
        strs[i] = fFields[i].toString();
    return new StringListImpl(strs, fFieldCount);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:IdentityConstraint.java

示例2: getErrorCodes

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error codes generated from validation attempts.
 * Need to find all the possible subclause reports that need reporting
 *
 * @return list of error codes
 */
public StringList getErrorCodes() {
    if (fErrorCodes != null) {
        return fErrorCodes;
    }
    return StringListImpl.EMPTY_LIST;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:PSVIAttrNSImpl.java

示例3: getErrorMessages

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error messages generated from the validation attempt or
 * an empty <code>StringList</code> if no errors occurred during the
 * validation attempt. The indices of error messages in this list are
 * aligned with those in the <code>[schema error code]</code> list.
 */
public StringList getErrorMessages() {
    if (fErrorMessages != null) {
        return fErrorMessages;
    }
    return StringListImpl.EMPTY_LIST;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:PSVIAttrNSImpl.java

示例4: getErrorCodes

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error codes generated from validation attempts.
 * Need to find all the possible subclause reports that need reporting
 *
 * @return Array of error codes
 */
public StringList getErrorCodes() {
    if (fErrorCodes != null) {
        return fErrorCodes;
    }
    return StringListImpl.EMPTY_LIST;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:PSVIElementNSImpl.java

示例5: getErrorCodes

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error codes generated from validation attempts.
 * Need to find all the possible subclause reports that need reporting
 *
 * @return Array of error codes
 */
public StringList getErrorCodes() {
    if (fErrors == null || fErrors.length == 0) {
        return StringListImpl.EMPTY_LIST;
    }
    return new PSVIErrorList(fErrors, true);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:ElementPSVImpl.java

示例6: getErrorMessages

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error messages generated from the validation attempt or
 * an empty <code>StringList</code> if no errors occurred during the
 * validation attempt. The indices of error messages in this list are
 * aligned with those in the <code>[schema error code]</code> list.
 */
public StringList getErrorMessages() {
    if (fErrors == null || fErrors.length == 0) {
        return StringListImpl.EMPTY_LIST;
    }
    return new PSVIErrorList(fErrors, false);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:ElementPSVImpl.java

示例7: getErrorCodes

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error codes generated from validation attempts.
 * Need to find all the possible subclause reports that need reporting
 *
 * @return list of error codes
 */
public StringList getErrorCodes() {
    if (fErrors == null || fErrors.length == 0) {
        return StringListImpl.EMPTY_LIST;
    }
    return new PSVIErrorList(fErrors, true);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:AttributePSVImpl.java

示例8: getRecognizedVersions

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
public StringList getRecognizedVersions() {
    StringListImpl list = new StringListImpl(new String[]{"1.0"}, 1);
    return list;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:XSImplementationImpl.java

示例9: XSModelImpl

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
public XSModelImpl(SchemaGrammar[] grammars, short s4sVersion) {
    // copy namespaces/grammars from the array to our arrays
    int len = grammars.length;
    final int initialSize = Math.max(len+1, 5);
    String[] namespaces = new String[initialSize];
    SchemaGrammar[] grammarList = new SchemaGrammar[initialSize];
    boolean hasS4S = false;
    for (int i = 0; i < len; i++) {
        final SchemaGrammar sg = grammars[i];
        final String tns = sg.getTargetNamespace();
        namespaces[i] = tns;
        grammarList[i] = sg;
        if (tns == SchemaSymbols.URI_SCHEMAFORSCHEMA) {
            hasS4S = true;
        }
    }
    // If a schema for the schema namespace isn't included, include it here.
    if (!hasS4S) {
        namespaces[len] = SchemaSymbols.URI_SCHEMAFORSCHEMA;
        grammarList[len++] = SchemaGrammar.getS4SGrammar(s4sVersion);
    }

    SchemaGrammar sg1, sg2;
    Vector gs;
    int i, j, k;
    // and recursively get all imported grammars, add them to our arrays
    for (i = 0; i < len; i++) {
        // get the grammar
        sg1 = grammarList[i];
        gs = sg1.getImportedGrammars();
        // for each imported grammar
        for (j = gs == null ? -1 : gs.size() - 1; j >= 0; j--) {
            sg2 = (SchemaGrammar)gs.elementAt(j);
            // check whether this grammar is already in the list
            for (k = 0; k < len; k++) {
                if (sg2 == grammarList[k]) {
                    break;
                }
            }
            // if it's not, add it to the list
            if (k == len) {
                // ensure the capacity of the arrays
                if (len == grammarList.length) {
                    String[] newSA = new String[len*2];
                    System.arraycopy(namespaces, 0, newSA, 0, len);
                    namespaces = newSA;
                    SchemaGrammar[] newGA = new SchemaGrammar[len*2];
                    System.arraycopy(grammarList, 0, newGA, 0, len);
                    grammarList = newGA;
                }
                namespaces[len] = sg2.getTargetNamespace();
                grammarList[len] = sg2;
                len++;
            }
        }
    }

    fNamespaces = namespaces;
    fGrammarList = grammarList;

    boolean hasIDC = false;
    // establish the mapping from namespace to grammars
    fGrammarMap = new SymbolHash(len*2);
    for (i = 0; i < len; i++) {
        fGrammarMap.put(null2EmptyString(fNamespaces[i]), fGrammarList[i]);
        // update the idc field
        if (fGrammarList[i].hasIDConstraints()) {
            hasIDC = true;
        }
    }

    fHasIDC = hasIDC;
    fGrammarCount = len;
    fGlobalComponents = new XSNamedMap[MAX_COMP_IDX+1];
    fNSComponents = new XSNamedMap[len][MAX_COMP_IDX+1];
    fNamespacesList = new StringListImpl(fNamespaces, fGrammarCount);

    // build substitution groups
    fSubGroupMap = buildSubGroups();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:81,代码来源:XSModelImpl.java

示例10: getDocumentLocations

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * [document location]
 * @see <a href="http://www.w3.org/TR/xmlschema-1/#sd-document_location">[document location]</a>
 * @return a list of document information item
 */
public StringList getDocumentLocations() {
    return new StringListImpl(fLocations);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:SchemaGrammar.java

示例11: getNsConstraintList

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * Namespace constraint. For <code>constraintType</code>
 * LIST_NSCONSTRAINT, the list contains allowed namespaces. For
 * <code>constraintType</code> NOT_NSCONSTRAINT, the list contains
 * disallowed namespaces.
 */
public StringList getNsConstraintList() {
    return new StringListImpl(fNamespaceList, fNamespaceList == null ? 0 : fNamespaceList.length);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:XSWildcardDecl.java

示例12: getErrorCodes

import com.sun.org.apache.xerces.internal.impl.xs.util.StringListImpl; //导入依赖的package包/类
/**
 * A list of error codes generated from validation attempts.
 * Need to find all the possible subclause reports that need reporting
 *
 * @return Array of error codes
 */
public StringList getErrorCodes() {
    if (fErrorCodes == null)
        return null;
    return new StringListImpl(fErrorCodes, fErrorCodes.length);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:ElementPSVImpl.java


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