org.apache.axiom.om.impl.dom
Class DocumentFragmentImpl
java.lang.Object
org.apache.axiom.om.impl.dom.NodeImpl
org.apache.axiom.om.impl.dom.ChildNode
org.apache.axiom.om.impl.dom.ParentNode
org.apache.axiom.om.impl.dom.DocumentFragmentImpl
- All Implemented Interfaces:
- Cloneable, OMContainerEx, OMNodeEx, OMContainer, OMNode, OMSerializable, DocumentFragment, Node, NodeList
public class DocumentFragmentImpl
- extends ParentNode
- implements DocumentFragment
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 |
Methods inherited from class org.apache.axiom.om.impl.dom.ParentNode |
addChild, buildNext, cloneNode, getBuilder, getChildNodes, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChild, getFirstChildWithName, getFirstOMChild, getFirstOMChildIfAvailable, getLastChild, getTextContent, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, hasChildNodes, importNode, insertBefore, removeChild, replaceChild, setFirstChild, setLastChild, setTextContent |
Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode |
detach, discard, getNextOMSibling, getNextOMSiblingIfAvailable, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling |
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
appendChild, build, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getUserData, hasAttributes, internalSerialize, internalSerializeAndConsume, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNodeValue, setOwnerDocument, setPrefix, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
DocumentFragmentImpl
public DocumentFragmentImpl(DocumentImpl ownerDocument,
OMFactory factory)
- Parameters:
ownerDocument
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface Node
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
getType
public int getType()
throws OMException
- Description copied from interface:
OMNode
- Returns the type of node.
- Specified by:
getType
in interface OMNode
- Returns:
- Returns one of
OMNode.ELEMENT_NODE
, OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
,
OMNode.COMMENT_NODE
, OMNode.DTD_NODE
, OMNode.PI_NODE
, OMNode.ENTITY_REFERENCE_NODE
or OMNode.SPACE_NODE
.
- Throws:
OMException
setType
public void setType(int nodeType)
throws OMException
- Specified by:
setType
in interface OMNodeEx
- Throws:
OMException
internalSerialize
public void internalSerialize(XMLStreamWriter writer,
boolean cache)
throws XMLStreamException
- Description copied from interface:
OMNodeEx
- Serializes the node. Note that this is an internal method that MUST NOT be used outside of
Axiom. Please use
OMSerializable.serialize(XMLStreamWriter, boolean)
instead.
- Specified by:
internalSerialize
in interface OMNodeEx
cache
- indicates if caching should be enabled
- Throws:
XMLStreamException
serialize
public void serialize(XMLStreamWriter xmlWriter)
throws XMLStreamException
- Description copied from interface:
OMSerializable
- Serializes the information item with caching. This method has the same effect as
OMSerializable.serialize(XMLStreamWriter, boolean)
with cache
set to
true
.
- Specified by:
serialize
in interface OMSerializable
- Overrides:
serialize
in class NodeImpl
- Throws:
XMLStreamException
serializeAndConsume
public void serializeAndConsume(XMLStreamWriter xmlWriter)
throws XMLStreamException
- Description copied from interface:
OMSerializable
- Serializes the information item without caching. This method has the same effect as
OMSerializable.serialize(XMLStreamWriter, boolean)
with cache
set to
false
.
- Specified by:
serializeAndConsume
in interface OMSerializable
- Overrides:
serializeAndConsume
in class NodeImpl
- Throws:
XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.