org.apache.axiom.om.impl.dom
Class DocumentFragmentImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.dom.NodeImpl
      extended by org.apache.axiom.om.impl.dom.ParentNode
          extended by org.apache.axiom.om.impl.dom.RootNode
              extended by org.apache.axiom.om.impl.dom.DocumentFragmentImpl
All Implemented Interfaces:
IContainer, IParentNode, OMContainerEx, OMContainer, OMInformationItem, OMSerializable, org.w3c.dom.DocumentFragment, org.w3c.dom.Node, org.w3c.dom.NodeList

public class DocumentFragmentImpl
extends RootNode
implements org.w3c.dom.DocumentFragment, IContainer


Field Summary
 
Fields inherited from class org.apache.axiom.om.impl.dom.ParentNode
firstChild, lastChild
 
Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl
factory, FIRSTCHILD, flags, HAS_PARENT, SPECIFIED
 
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
 
Fields inherited from interface org.apache.axiom.om.impl.common.IParentNode
COMPLETE, DISCARDED, INCOMPLETE
 
Constructor Summary
DocumentFragmentImpl(OMFactory factory)
           
 
Method Summary
 void build()
           
 void discarded()
           
 OMXMLParserWrapper getBuilder()
           
 org.w3c.dom.Node getNextSibling()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 int getState()
           
 void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean cache)
           
 boolean isComplete()
           
 java.lang.String lookupNamespaceURI(java.lang.String specifiedPrefix)
           
 void removeChildren()
           
 void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
           
 void setComplete(boolean state)
           
 
Methods inherited from class org.apache.axiom.om.impl.dom.ParentNode
addChild, addChild, appendChild, getChildNodes, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChild, getFirstChildWithName, getFirstOMChild, getFirstOMChildIfAvailable, getLastChild, getLastKnownOMChild, getLength, getSAXSource, getTextContent, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, hasChildNodes, insertBefore, item, removeChild, replaceChild, setFirstChild, setLastChild, setTextContent
 
Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl
buildWithAttachments, clone, cloneNode, close, compareDocumentPosition, detach, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextOMSiblingIfAvailable, getNodeValue, getOMFactory, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousOMSibling, getPreviousSibling, getUserData, hasAttributes, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setNextOMSibling, setNodeValue, setParent, setParent, setPrefix, setPreviousOMSibling, 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, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.apache.axiom.om.impl.common.IContainer
getLastKnownOMChild, setFirstChild, setLastChild
 
Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx
addChild
 
Methods inherited from interface org.apache.axiom.om.OMContainer
addChild, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.axiom.om.OMSerializable
close, serialize
 
Methods inherited from interface org.apache.axiom.om.OMInformationItem
clone, getOMFactory
 
Methods inherited from interface org.apache.axiom.om.impl.common.IParentNode
getFirstOMChildIfAvailable
 

Constructor Detail

DocumentFragmentImpl

public DocumentFragmentImpl(OMFactory factory)
Parameters:
ownerDocument -
Method Detail

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

internalSerialize

public void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
                              boolean cache)
                       throws javax.xml.stream.XMLStreamException
Specified by:
internalSerialize in class NodeImpl
Throws:
javax.xml.stream.XMLStreamException

serialize

public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface OMSerializable
Overrides:
serialize in class NodeImpl
Throws:
javax.xml.stream.XMLStreamException

serializeAndConsume

public void serializeAndConsume(javax.xml.stream.XMLStreamWriter xmlWriter)
                         throws javax.xml.stream.XMLStreamException
Specified by:
serializeAndConsume in interface OMSerializable
Overrides:
serializeAndConsume in class NodeImpl
Throws:
javax.xml.stream.XMLStreamException

getBuilder

public final OMXMLParserWrapper getBuilder()
Specified by:
getBuilder in interface IParentNode
Specified by:
getBuilder in interface OMContainer
Specified by:
getBuilder in class NodeImpl

getState

public final int getState()
Specified by:
getState in interface IParentNode

isComplete

public final boolean isComplete()
Specified by:
isComplete in interface IParentNode
Specified by:
isComplete in interface OMSerializable
Specified by:
isComplete in class NodeImpl

setComplete

public final void setComplete(boolean state)
Specified by:
setComplete in interface OMContainerEx
Specified by:
setComplete in class NodeImpl

discarded

public final void discarded()
Specified by:
discarded in interface OMContainerEx

build

public final void build()
Specified by:
build in interface OMSerializable

getNextSibling

public final org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node

removeChildren

public void removeChildren()
Specified by:
removeChildren in interface OMContainer

lookupNamespaceURI

public final java.lang.String lookupNamespaceURI(java.lang.String specifiedPrefix)
Specified by:
lookupNamespaceURI in interface org.w3c.dom.Node


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.