oracle.xml.parser.v2
Class XMLDocumentFragment

java.lang.Object
  |
  +--oracle.xml.parser.v2.XMLNode
        |
        +--oracle.xml.parser.v2.XMLNSNode
              |
              +--oracle.xml.parser.v2.XMLElement
                    |
                    +--oracle.xml.parser.v2.XMLDocumentFragment

public class XMLDocumentFragment
extends XMLElement
implements DocumentFragment, java.io.Serializable

This class implements the DOM DocumentFragment interface. Extends XMLElement rather than XMLNode so it can be handled as an element. This is convenient in processing

See Also:
DocumentFragment, NodeFactory, DOMParser.setNodeFactory(oracle.xml.parser.v2.NodeFactory), Serialized Form

Fields inherited from class oracle.xml.parser.v2.XMLNode
ATTRDECL, Auto_Events, capturing, DOMAttrModified, DOMCharacterDataModified, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified, ELEMENTDECL, noncapturing, RANGE_DELETE_EVENT, RANGE_DELETETEXT_EVENT, RANGE_INSERT_EVENT, RANGE_INSERTTEXT_EVENT, RANGE_REPLACE_EVENT, RANGE_SETTEXT_EVENT, TRAVERSAL_DELETE_EVENT, TRAVERSAL_REPLACE_EVENT, XMLDECL_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
XMLDocumentFragment()
          Deprecated. use createDocumentFragment() method in XMLDocuemnt
 
Method Summary
TypeMethod
 NamedNodeMap getAttributes()
          A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
 java.lang.String getLocalName()
          Gets the local Name for this element.
 java.lang.String getNamespaceURI()
          The namespace URI of this node, or null if it is unspecified.
 short getNodeType()
          Gets a code representing the type of the underlying object
 Node getParentNode()
          Gets the parent of this node
 
Methods inherited from class oracle.xml.parser.v2.XMLElement
cloneNode, getAttribute, getAttributeNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildrenByTagName, getChildrenByTagName, getElementsByTagName, getElementsByTagName, getElementsByTagNameNS, getExpandedName, getFirstAttribute, getNamespace, getPrefix, getQualifiedName, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, readExternal, readExternal, removeAttribute, removeAttributeNode, removeAttributeNS, reportSAXEvents, resolveNamespacePrefix, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, validateContent, validateContent, validateContent, writeExternal, writeExternal
 
Methods inherited from class oracle.xml.parser.v2.XMLNSNode
addText, addText, appendChild, getChildNodes, getFirstChild, getLastChild, getNodeLocalName, getNodeName, getNodePrefix, getText, hasChildNodes, insertBefore, removeChild, replaceChild, setPrefix
 
Methods inherited from class oracle.xml.parser.v2.XMLNode
addEventListener, dispatchEvent, getColumnNumber, getDebugMode, getLineNumber, getNextSibling, getNodeValue, getOwnerDocument, getPreviousSibling, getProperty, getSystemId, isNodeFlag, isSupported, print, print, print, readChildNodes, removeEventListener, resetNodeFlag, selectNodes, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeValue, setProperty, supports, transformNode, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentFragment

public XMLDocumentFragment()
Deprecated. use createDocumentFragment() method in XMLDocuemnt

Creates an empty document fragment
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from interface: Node
The namespace URI of this node, or null if it is unspecified.
This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as createElement from the Document interface, this is always null.Per the Namespaces in XML Specification an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.
Overrides:
getNamespaceURI in class XMLElement
Returns:
the namespace URI of this element
Since:
DOM 2 Gets the name space URI of this element

getLocalName

public java.lang.String getLocalName()
Gets the local Name for this element.
Overrides:
getLocalName in class XMLElement
Returns:
the local Name

getParentNode

public Node getParentNode()
Gets the parent of this node
Overrides:
getParentNode in class XMLNode
Returns:
The parent of this node (always null)

getNodeType

public short getNodeType()
Gets a code representing the type of the underlying object
Overrides:
getNodeType in class XMLElement
Returns:
type of the node

getAttributes

public NamedNodeMap getAttributes()
Description copied from interface: Node
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
Overrides:
getAttributes in class XMLElement
Tags copied from class: XMLElement
Returns:
The list of attributes of this element