Class DocumentXMLImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Document, org.w3c.dom.events.DocumentEvent, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.ranges.DocumentRange, org.w3c.dom.traversal.DocumentTraversal
    Direct Known Subclasses:
    DocumentJDFImpl

    public class DocumentXMLImpl
    extends org.apache.xerces.dom.DocumentImpl
    implementation of the JDFLib class factory
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long initialMem  
      protected javax.mail.BodyPart m_Bodypart
      the mime bodypart that this document was parsed from
      protected java.lang.String m_OriginalFileName
      the original file name if an element was parsed, else null
      XMLDoc m_validationResult
      the xml output of the schema validation
      protected ZipReader m_ZipReader
      we need this for grabbing local urls in a zip stream
      protected java.util.HashMap<java.lang.String,​java.lang.String> nsMap  
      • Fields inherited from class org.apache.xerces.dom.DocumentImpl

        eventListeners, iteratorReferenceQueue, iterators, mutationEvents, rangeReferenceQueue, ranges
      • Fields inherited from class org.apache.xerces.dom.CoreDocumentImpl

        actualEncoding, allowGrammarAccess, changes, docElement, docType, encoding, errorChecking, fDocumentURI, identifiers, standalone, userData, version, xmlVersionChanged
      • Fields inherited from class org.apache.xerces.dom.ParentNode

        firstChild, fNodeListCache, ownerDocument
      • Fields inherited from class org.apache.xerces.dom.ChildNode

        nextSibling, previousSibling
      • Fields inherited from class org.apache.xerces.dom.NodeImpl

        DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
      • Fields inherited from interface org.w3c.dom.Node

        ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentXMLImpl()
      Constructor for DocumentJDFImpl.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearDirty()  
      DocumentXMLImpl clone()  
      org.w3c.dom.Element createElement​(java.lang.String qualifiedName)
      Factory method; creates an Element having this Document as its OwnerDoc.
      org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI, java.lang.String qualifiedName)  
      org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String localPart)  
      long getDocMemoryUsed()
      rough guestimate of the memory used by this if called after parsing
      java.lang.String getNamespaceURIFromPrefix​(java.lang.String prefix)  
      boolean isDirty()  
      boolean isIgnoreNSDefault()  
      static boolean isStaticStrictNSCheck()  
      boolean isStrictNSCheck()  
      void setDirty()  
      void setIgnoreNSDefault​(boolean _setIgnoreNSDefault)
      if true no namespaces are heuristically gathered
      void setNamespaceURIFromPrefix​(java.lang.String prefix, java.lang.String strNamespaceURI)  
      static void setStaticStrictNSCheck​(boolean staticStrictNSCheck)  
      void setStrictNSCheck​(boolean strictNSCheck)  
      java.lang.String toString()  
      • Methods inherited from class org.apache.xerces.dom.DocumentImpl

        addEventListener, cloneNode, copyEventListeners, createEvent, createNodeIterator, createNodeIterator, createRange, createTreeWalker, createTreeWalker, dispatchAggregateEvents, dispatchAggregateEvents, dispatchEvent, dispatchEventToSubtree, dispatchingEventToSubtree, getEventListeners, getImplementation, removeEventListener, saveEnclosingAttr, setEventListeners
      • Methods inherited from class org.apache.xerces.dom.CoreDocumentImpl

        abort, adoptNode, callUserDataHandlers, canRenameElements, changed, changes, checkDOMNSErr, checkNamespaceWF, checkQName, clearIdentifiers, cloneNode, createAttribute, createAttributeNS, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElementDefinition, createEntity, createEntityReference, createNotation, createProcessingInstruction, createTextNode, getAsync, getBaseURI, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getErrorChecking, getFeature, getIdentifier, getIdentifiers, getInputEncoding, getNodeName, getNodeNumber, getNodeNumber, getNodeType, getOwnerDocument, getStandalone, getStrictErrorChecking, getTextContent, getUserData, getUserData, getUserDataRecord, getVersion, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isKidOK, isValidQName, isXMLName, load, loadXML, normalizeDocument, putIdentifier, removeChild, removeIdentifier, renameNode, replaceChild, saveXML, setAsync, setDocumentURI, setEncoding, setErrorChecking, setInputEncoding, setStandalone, setStrictErrorChecking, setTextContent, setUserData, setUserData, setVersion, setXmlEncoding, setXmlStandalone, setXmlVersion, undeferChildren
      • Methods inherited from class org.apache.xerces.dom.ParentNode

        getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, hasChildNodes, isEqualNode, item, normalize, setOwnerDocument, setReadOnly, synchronizeChildren
      • Methods inherited from class org.apache.xerces.dom.ChildNode

        getNextSibling, getParentNode, getPreviousSibling
      • Methods inherited from class org.apache.xerces.dom.NodeImpl

        addEventListener, appendChild, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getContainer, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, hasAttributes, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, setUserData, synchronizeData
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.w3c.dom.Node

        appendChild, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setPrefix, setUserData
    • Field Detail

      • m_validationResult

        public XMLDoc m_validationResult
        the xml output of the schema validation
      • initialMem

        protected long initialMem
      • m_OriginalFileName

        protected java.lang.String m_OriginalFileName
        the original file name if an element was parsed, else null
      • m_Bodypart

        protected javax.mail.BodyPart m_Bodypart
        the mime bodypart that this document was parsed from
      • m_ZipReader

        protected ZipReader m_ZipReader
        we need this for grabbing local urls in a zip stream
      • nsMap

        protected final java.util.HashMap<java.lang.String,​java.lang.String> nsMap
    • Constructor Detail

      • DocumentXMLImpl

        public DocumentXMLImpl()
        Constructor for DocumentJDFImpl.
    • Method Detail

      • isStaticStrictNSCheck

        public static boolean isStaticStrictNSCheck()
        Returns:
        the bStaticStrictNSCheck
      • setStaticStrictNSCheck

        public static void setStaticStrictNSCheck​(boolean staticStrictNSCheck)
        Parameters:
        staticStrictNSCheck - the bStaticStrictNSCheck to set
      • isStrictNSCheck

        public boolean isStrictNSCheck()
        Returns:
        the strictNSCheck
      • setStrictNSCheck

        public void setStrictNSCheck​(boolean strictNSCheck)
        Parameters:
        strictNSCheck - the strictNSCheck to set
      • getDocMemoryUsed

        public long getDocMemoryUsed()
        rough guestimate of the memory used by this if called after parsing
        Returns:
        the difference of memory used when calling compared to construction time
      • clone

        public DocumentXMLImpl clone()
        Overrides:
        clone in class org.apache.xerces.dom.CoreDocumentImpl
        See Also:
        CoreDocumentImpl.clone()
      • createElement

        public org.w3c.dom.Element createElement​(java.lang.String qualifiedName)
        Factory method; creates an Element having this Document as its OwnerDoc.
        Specified by:
        createElement in interface org.w3c.dom.Document
        Overrides:
        createElement in class org.apache.xerces.dom.CoreDocumentImpl
        Parameters:
        qualifiedName - The name of the element type to instantiate. For XML, this is case-sensitive.
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName)
        Specified by:
        createElementNS in interface org.w3c.dom.Document
        Overrides:
        createElementNS in class org.apache.xerces.dom.CoreDocumentImpl
        Parameters:
        namespaceURI -
        qualifiedName -
        Returns:
        See Also:
        CoreDocumentImpl.createElementNS(java.lang.String, java.lang.String)
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName,
                                                   java.lang.String localPart)
        Overrides:
        createElementNS in class org.apache.xerces.dom.CoreDocumentImpl
        Parameters:
        namespaceURI -
        qualifiedName -
        localPart -
        Returns:
        See Also:
        CoreDocumentImpl.createElementNS(java.lang.String, java.lang.String, java.lang.String)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.apache.xerces.dom.NodeImpl
        See Also:
        Object.toString()
      • isIgnoreNSDefault

        public boolean isIgnoreNSDefault()
        Returns:
        the setIgnoreNSDefault; if true no namespaces are collected
      • setIgnoreNSDefault

        public void setIgnoreNSDefault​(boolean _setIgnoreNSDefault)
        if true no namespaces are heuristically gathered
        Parameters:
        _setIgnoreNSDefault - the setIgnoreNSDefault to set
      • getNamespaceURIFromPrefix

        public java.lang.String getNamespaceURIFromPrefix​(java.lang.String prefix)
        Parameters:
        prefix -
        Returns:
      • setNamespaceURIFromPrefix

        public void setNamespaceURIFromPrefix​(java.lang.String prefix,
                                              java.lang.String strNamespaceURI)
        Parameters:
        prefix -
        strNamespaceURI -
      • isDirty

        public boolean isDirty()
      • clearDirty

        public void clearDirty()
      • setDirty

        public void setDirty()