|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.om.impl.dom.NodeImpl
org.apache.axis2.om.impl.dom.ChildNode
org.apache.axis2.om.impl.dom.ParentNode
org.apache.axis2.om.impl.dom.DocumentImpl
Field Summary | |
protected ElementImpl |
documentElement
|
protected Hashtable |
identifiers
|
Fields inherited from class org.apache.axis2.om.impl.dom.ParentNode |
firstChild, lastChild |
Fields inherited from class org.apache.axis2.om.impl.dom.ChildNode |
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
builder, done, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED |
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 |
Fields inherited from interface org.apache.axis2.om.OMDocument |
XML_10, XML_11 |
Fields inherited from interface org.apache.axis2.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Constructor Summary | |
DocumentImpl()
|
|
DocumentImpl(DocumentImpl ownerDocument)
|
|
DocumentImpl(OMXMLParserWrapper parserWrapper)
|
Method Summary | |
Node |
adoptNode(Node arg0)
|
protected void |
checkQName(String prefix,
String local)
Borrowed from the Xerces impl. |
Attr |
createAttribute(String name)
|
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
|
CDATASection |
createCDATASection(String arg0)
|
Comment |
createComment(String data)
|
DocumentFragment |
createDocumentFragment()
|
Element |
createElement(String tagName)
|
Element |
createElementNS(String ns,
String qualifiedName)
|
EntityReference |
createEntityReference(String arg0)
|
ProcessingInstruction |
createProcessingInstruction(String arg0,
String arg1)
|
Text |
createTextNode(String value)
|
String |
getCharsetEncoding()
Returns the character set encoding scheme. |
DocumentType |
getDoctype()
|
Element |
getDocumentElement()
Returns the document element. |
String |
getDocumentURI()
|
DOMConfiguration |
getDomConfig()
|
Element |
getElementById(String arg0)
|
NodeList |
getElementsByTagName(String arg0)
|
NodeList |
getElementsByTagNameNS(String arg0,
String arg1)
|
DOMImplementation |
getImplementation()
|
String |
getInputEncoding()
|
OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
String |
getNodeName()
|
short |
getNodeType()
|
OMElement |
getOMDocumentElement()
Returns the document element. |
OMContainer |
getParent()
Returns the parent containing node. |
OMNode |
getPreviousOMSibling()
Default behavior returns null, overriden in ChildNode. |
Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
boolean |
getStrictErrorChecking()
|
int |
getType()
Returns the type of node. |
String |
getXmlEncoding()
|
boolean |
getXmlStandalone()
|
String |
getXmlVersion()
|
String |
getXMLVersion()
Returns the XML version. |
Node |
importNode(Node importedNode,
boolean deep)
|
String |
isStandalone()
XML standalone value. |
void |
normalizeDocument()
|
Node |
renameNode(Node arg0,
String arg1,
String arg2)
|
void |
serialize(OMOutputImpl omOutput)
Serializes the node with caching. |
void |
serialize(OMOutputImpl omOutput,
boolean includeXMLDeclaration)
|
void |
serialize(OutputStream output,
OMOutputFormat format)
Builds the OM node/tree and then serializes the document. |
void |
serialize(XMLStreamWriter xmlWriter)
Serializes the node with caching. |
void |
serializeAndConsume(OMOutputImpl omOutput)
Serializes the node without caching. |
void |
serializeAndConsume(OMOutputImpl omOutput,
boolean includeXMLDeclaration)
|
void |
serializeAndConsume(OutputStream output,
OMOutputFormat format)
Serializes the OMDocument. |
void |
serializeAndConsume(XMLStreamWriter xmlWriter)
Serializes the node without caching. |
void |
setCharsetEncoding(String charsetEncoding)
Sets the character set encoding scheme to be used. |
void |
setDocumentURI(String arg0)
|
void |
setNextOMSibling(OMNode node)
|
void |
setOMDocumentElement(OMElement rootElement)
Sets the document element of the XML document. |
void |
setParent(OMContainer element)
|
void |
setPreviousOMSibling(OMNode node)
|
void |
setStandalone(String isStandalone)
|
void |
setStrictErrorChecking(boolean arg0)
|
void |
setType(int nodeType)
|
void |
setXmlStandalone(boolean arg0)
|
void |
setXmlVersion(String arg0)
|
void |
setXMLVersion(String version)
Sets the XML version. |
Methods inherited from class org.apache.axis2.om.impl.dom.ParentNode |
addChild, buildNext, cloneNode, getChildNodes, getChildren, getChildrenWithName, getFirstChild, getFirstChildWithName, getFirstOMChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild, setFirstChild |
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode |
detach, discard, getParentNode, insertSiblingAfter, insertSiblingBefore |
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl |
appendChild, build, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, getTextContent, getUserData, hasAttributes, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, setComplete, setNodeValue, setOwnerDocument, setPrefix, setTextContent, 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, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getParentNode, getPrefix, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.apache.axis2.om.OMDocument |
serialize, serializeAndConsume |
Methods inherited from interface org.apache.axis2.om.OMContainer |
addChild, buildNext, getChildren, getChildrenWithName, getFirstChildWithName, getFirstOMChild, isComplete |
Methods inherited from interface org.apache.axis2.om.impl.OMContainerEx |
setComplete |
Field Detail |
protected Hashtable identifiers
protected ElementImpl documentElement
Constructor Detail |
public DocumentImpl(DocumentImpl ownerDocument)
ownerDocument
- public DocumentImpl(OMXMLParserWrapper parserWrapper)
public DocumentImpl()
Method Detail |
public void setType(int nodeType) throws OMException
setType
in interface OMNodeEx
OMException
public int getType() throws OMException
OMNode
getType
in interface OMNode
OMNode.ELEMENT_NODE
, OMNode.TEXT_NODE
, OMNode.CDATA_SECTION_NODE
, OMNode.COMMENT_NODE
,
OMNode.DTD_NODE
, OMNode.PI_NODE
, OMNode.ENTITY_REFERENCE_NODE
, OMNode.SPACE_NODE
,
or OMNode.TEXT_NODE
.
OMException
public void serialize(OMOutputImpl omOutput) throws XMLStreamException
OMNodeEx
serialize
in interface OMNodeEx
omOutput
-
XMLStreamException
OMNodeEx.serialize(org.apache.axis2.om.impl.OMOutputImpl)
public OMNode getNextOMSibling() throws OMException
NodeImpl
getNextOMSibling
in interface OMNode
getNextOMSibling
in class ChildNode
OMException
public Node getNextSibling()
NodeImpl
getNextSibling
in interface Node
getNextSibling
in class ChildNode
public OMContainer getParent() throws OMException
OMNode
Returns the parent container, which may be either an OMDocument
or OMElement
.
getParent
in interface OMNode
getParent
in class ChildNode
OMException
public OMNode getPreviousOMSibling()
NodeImpl
getPreviousOMSibling
in interface OMNode
getPreviousOMSibling
in class ChildNode
public Node getPreviousSibling()
NodeImpl
getPreviousSibling
in interface Node
getPreviousSibling
in class ChildNode
public void setNextOMSibling(OMNode node)
setNextOMSibling
in interface OMNodeEx
setNextOMSibling
in class ChildNode
public void setParent(OMContainer element)
setParent
in interface OMNodeEx
setParent
in class ChildNode
public void setPreviousOMSibling(OMNode node)
setPreviousOMSibling
in interface OMNodeEx
setPreviousOMSibling
in class ChildNode
public String getNodeName()
getNodeName
in interface Node
public short getNodeType()
getNodeType
in interface Node
public Attr createAttribute(String name) throws DOMException
createAttribute
in interface Document
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
DOMException
public CDATASection createCDATASection(String arg0) throws DOMException
createCDATASection
in interface Document
DOMException
public Comment createComment(String data)
createComment
in interface Document
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
DOMException
public Element createElementNS(String ns, String qualifiedName) throws DOMException
createElementNS
in interface Document
DOMException
public EntityReference createEntityReference(String arg0) throws DOMException
createEntityReference
in interface Document
DOMException
public ProcessingInstruction createProcessingInstruction(String arg0, String arg1) throws DOMException
createProcessingInstruction
in interface Document
DOMException
public Text createTextNode(String value)
createTextNode
in interface Document
public DocumentType getDoctype()
getDoctype
in interface Document
public Element getElementById(String arg0)
getElementById
in interface Document
public NodeList getElementsByTagName(String arg0)
getElementsByTagName
in interface Document
public NodeList getElementsByTagNameNS(String arg0, String arg1)
getElementsByTagNameNS
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
OMNode
serialize
in interface OMNode
serialize
in class NodeImpl
XMLStreamException
public void serializeAndConsume(OMOutputImpl omOutput) throws XMLStreamException
OMNodeEx
serializeAndConsume
in interface OMNodeEx
omOutput
-
XMLStreamException
public void serializeAndConsume(XMLStreamWriter xmlWriter) throws XMLStreamException
OMNode
serializeAndConsume
in interface OMNode
serializeAndConsume
in class NodeImpl
XMLStreamException
public String getCharsetEncoding()
OMDocument
getCharsetEncoding
in interface OMDocument
public String getXMLVersion()
OMDocument
getXMLVersion
in interface OMDocument
public String isStandalone()
OMDocument
isStandalone
in interface OMDocument
public void serialize(OMOutputImpl omOutput, boolean includeXMLDeclaration) throws XMLStreamException
XMLStreamException
public void serializeAndConsume(OMOutputImpl omOutput, boolean includeXMLDeclaration) throws XMLStreamException
XMLStreamException
public void setCharsetEncoding(String charsetEncoding)
OMDocument
setCharsetEncoding
in interface OMDocument
charsetEncoding
- public void setOMDocumentElement(OMElement rootElement)
OMDocument
setOMDocumentElement
in interface OMDocument
rootElement
- public void setStandalone(String isStandalone)
setStandalone
in interface OMDocument
public void serializeAndConsume(OutputStream output, OMOutputFormat format) throws XMLStreamException
OMDocument
serializeAndConsume
in interface OMDocument
serializeAndConsume
in class NodeImpl
XMLStreamException
public void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException
OMDocument
serialize
in interface OMDocument
serialize
in class NodeImpl
XMLStreamException
public void setXMLVersion(String version)
OMDocument
setXMLVersion
in interface OMDocument
version
- XML 1.0
,
XML 1.1
public OMElement getOMDocumentElement()
getOMDocumentElement
in interface OMDocument
OMDocument.getOMDocumentElement()
public Element getDocumentElement()
getDocumentElement
in interface Document
Document.getDocumentElement()
protected final void checkQName(String prefix, String local)
prefix
- prefix of qualified namelocal
- local part of qualified namepublic Node adoptNode(Node arg0) throws DOMException
DOMException
public String getDocumentURI()
public DOMConfiguration getDomConfig()
public String getInputEncoding()
public boolean getStrictErrorChecking()
public String getXmlEncoding()
public boolean getXmlStandalone()
public String getXmlVersion()
public void normalizeDocument()
public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException
DOMException
public void setDocumentURI(String arg0)
public void setStrictErrorChecking(boolean arg0)
public void setXmlStandalone(boolean arg0) throws DOMException
DOMException
public void setXmlVersion(String arg0) throws DOMException
DOMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |