Package org.apache.xerces.utils

Examples of org.apache.xerces.utils.StringPool$CharArrayRange


                                   int type2, int local2, int uri2,
                                   SubstitutionGroupComparator comparator) throws Exception {
        boolean ret = conflic(type1, local1, uri1, type2, local2, uri2, comparator);

        if (ret && comparator != null) {
            StringPool stringPool = comparator.getStringPool();
            XMLErrorReporter err = comparator.getErrorReporter();
            err.reportError(err.getLocator(),
                            SchemaMessageProvider.SCHEMA_DOMAIN,
                            SchemaMessageProvider.UniqueParticleAttribution,
                            SchemaMessageProvider.MSG_NONE,
View Full Code Here


        // we don't want to generate any event for this so turn them off
        boolean orig = ownerDocument.mutationEvents;
        ownerDocument.mutationEvents = false;

        int elementQName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(elementQName);

        // extract local part from QName
        int index = name.indexOf(':');
        if (index < 0) {
            localName = name;
        }
        else {
            localName = name.substring(index + 1);
        }

  namespaceURI = pool.toString(ownerDocument.getNodeURI(fNodeIndex));
        // hide the fact that our parser uses an empty string for null
        if (namespaceURI.length() == 0) {
            namespaceURI = null;
        }
View Full Code Here

        // fluff data
        DeferredDocumentImpl ownerDocument =
            (DeferredDocumentImpl) ownerDocument();
        int elementTypeName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(elementTypeName);
        isSpecified(ownerDocument.getNodeValue(fNodeIndex) == 1);

    } // synchronizeData()
View Full Code Here

        // we don't want to generate any event for this so turn them off
        boolean orig = ownerDocument.mutationEvents;
        ownerDocument.mutationEvents = false;

        int elementTypeName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(elementTypeName);

        // attributes
        setupDefaultAttributes();
        int index = ownerDocument.getNodeValue(fNodeIndex);
        if (index != -1) {
View Full Code Here

        DeferredDocumentImpl ownerDocument =
            (DeferredDocumentImpl)this.ownerDocument();
        name = ownerDocument.getNodeNameString(fNodeIndex);

        // public and system ids
        StringPool pool = ownerDocument.getStringPool();
        int extraDataIndex = ownerDocument.getNodeValue(fNodeIndex);
        ownerDocument.getNodeType(extraDataIndex);
        publicId = pool.toString(ownerDocument.getNodeName(extraDataIndex));
        systemId = pool.toString(ownerDocument.getNodeValue(extraDataIndex));

    } // synchronizeData()
View Full Code Here

        // fluff data
        DeferredDocumentImpl ownerDocument =
      (DeferredDocumentImpl) ownerDocument();
        int attrQName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(attrQName);

        // extract prefix and local part from QName
        int index = name.indexOf(':');
        String prefix;
        if (index < 0) {
            prefix = null;
            localName = name;
        }
        else {
            prefix = name.substring(0, index);
            localName = name.substring(index + 1);
        }

        isSpecified(ownerDocument.getNodeValue(fNodeIndex) == 1);
  //namespaceURI = pool.toString(ownerDocument.getNodeURI(attrQName));
        namespaceURI = pool.toString(ownerDocument.getNodeURI(fNodeIndex));
        // hide the fact that our parser uses an empty string for null
        if (namespaceURI.length() == 0) {
            namespaceURI = null;
        }
  // DOM Level 2 wants all namespace declaration attributes
View Full Code Here

    /**
     * Constructor
     */
    protected XMLParser() {
        this(new StringPool());
    }
View Full Code Here

    /**
     * Reset or copy parser
     * Allows parser instance reuse
     */
    protected void resetOrCopy() throws Exception {
        fStringPool = new StringPool();
        fEntityHandler.reset(fStringPool);
        fScanner.reset(fStringPool, new ChunkyCharArray(fStringPool));
        fValidator.resetOrCopy(fStringPool);
        fNeedReset = false;
        // REVISIT: why did we do it?
View Full Code Here

        // we don't want to generate any event for this so turn them off
        boolean orig = ownerDocument.mutationEvents;
        ownerDocument.mutationEvents = false;

        int elementQName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(elementQName);

        // extract local part from QName
        int index = name.indexOf(':');
        if (index < 0) {
            localName = name;
        }
        else {
            localName = name.substring(index + 1);
        }

  namespaceURI = pool.toString(ownerDocument.getNodeURI(fNodeIndex));
        // hide the fact that our parser uses an empty string for null
        if (namespaceURI.length() == 0) {
            namespaceURI = null;
        }
View Full Code Here

        // fluff data
        DeferredDocumentImpl ownerDocument =
            (DeferredDocumentImpl) ownerDocument();
        int elementTypeName = ownerDocument.getNodeName(fNodeIndex);
        StringPool pool = ownerDocument.getStringPool();
        name = pool.toString(elementTypeName);
        isSpecified(ownerDocument.getNodeValue(fNodeIndex) == 1);

    } // synchronizeData()
View Full Code Here

TOP

Related Classes of org.apache.xerces.utils.StringPool$CharArrayRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.