|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.DocumentImpl
public class DocumentImpl
| Field Summary | |
|---|---|
protected ElementImpl |
documentElement
|
protected java.util.Hashtable |
identifiers
|
| Fields inherited from class org.apache.axiom.om.impl.dom.ParentNode |
|---|
firstChild, lastChild |
| Fields inherited from class org.apache.axiom.om.impl.dom.ChildNode |
|---|
nextSibling, parentNode, previousSibling |
| Fields inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
builder, done, factory, FIRSTCHILD, flags, 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_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.OMDocument |
|---|
XML_10, XML_11 |
| Fields inherited from interface org.apache.axiom.om.OMNode |
|---|
DTD_NODE, PI_NODE, SPACE_NODE |
| Constructor Summary | |
|---|---|
DocumentImpl(DocumentImpl ownerDocument,
OMFactory factory)
|
|
DocumentImpl(OMFactory factory)
|
|
DocumentImpl(OMXMLParserWrapper parserWrapper,
OMFactory factory)
|
|
| Method Summary | |
|---|---|
protected void |
addIdAttr(org.w3c.dom.Attr attr)
|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node node)
|
void |
build()
Builds next element. |
protected void |
checkQName(java.lang.String prefix,
java.lang.String local)
Borrowed from the Xerces impl. |
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String arg0)
|
org.w3c.dom.Comment |
createComment(java.lang.String data)
|
org.w3c.dom.DocumentFragment |
createDocumentFragment()
|
org.w3c.dom.Element |
createElement(java.lang.String tagName)
|
org.w3c.dom.Element |
createElementNS(java.lang.String ns,
java.lang.String qualifiedName)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String arg0)
|
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
|
org.w3c.dom.Text |
createTextNode(java.lang.String value)
|
java.lang.String |
getCharsetEncoding()
Returns the character set encoding scheme. |
org.w3c.dom.DocumentType |
getDoctype()
|
org.w3c.dom.Element |
getDocumentElement()
Returns the document element. |
java.lang.String |
getDocumentURI()
|
org.w3c.dom.DOMConfiguration |
getDomConfig()
|
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String arg0)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.DOMImplementation |
getImplementation()
|
java.lang.String |
getInputEncoding()
|
OMNode |
getNextOMSibling()
Default behavior returns null, overriden in ChildNode. |
org.w3c.dom.Node |
getNextSibling()
Returns the next child of this node's parent, or null if none. |
java.lang.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. |
org.w3c.dom.Node |
getPreviousSibling()
Returns the previous child of this node's parent, or null if none. |
boolean |
getStrictErrorChecking()
|
java.lang.String |
getTextContent()
|
int |
getType()
Returns the type of node. |
java.lang.String |
getXmlEncoding()
|
boolean |
getXmlStandalone()
|
java.lang.String |
getXmlVersion()
|
java.lang.String |
getXMLVersion()
Returns the XML version. |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the node with caching. |
protected void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache,
boolean includeXMLDeclaration)
|
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
Serializes the node without caching. |
java.lang.String |
isStandalone()
XML standalone value. |
void |
normalizeDocument()
|
protected void |
removeIdAttr(org.w3c.dom.Attr attr)
|
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node arg0,
java.lang.String arg1,
java.lang.String arg2)
|
void |
serialize(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node with caching. |
void |
serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
Serializes the node without caching. |
void |
setCharsetEncoding(java.lang.String charsetEncoding)
Sets the character set encoding scheme to be used. |
void |
setDocumentURI(java.lang.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(java.lang.String isStandalone)
|
void |
setStrictErrorChecking(boolean arg0)
|
void |
setTextContent(java.lang.String textContent)
|
void |
setType(int nodeType)
|
void |
setXmlStandalone(boolean standalone)
|
void |
setXmlVersion(java.lang.String version)
|
void |
setXMLVersion(java.lang.String version)
Sets the XML version. |
| Methods inherited from class org.apache.axiom.om.impl.dom.ParentNode |
|---|
addChild, buildNext, cloneNode, getChildNodes, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChild, getFirstChildWithName, getFirstOMChild, getLastChild, hasChildNodes, importNode, insertBefore, removeChild, replaceChild, setFirstChild, setLastChild |
| Methods inherited from class org.apache.axiom.om.impl.dom.ChildNode |
|---|
detach, discard, getParentNode, insertSiblingAfter, insertSiblingBefore |
| Methods inherited from class org.apache.axiom.om.impl.dom.NodeImpl |
|---|
appendChild, buildWithAttachments, close, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLength, getLocalName, getNamespaceURI, getNodeValue, getOMFactory, getOwnerDocument, getPrefix, getUserData, hasAttributes, internalSerializeWithCache, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, 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, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setUserData |
| Methods inherited from interface org.apache.axiom.om.OMDocument |
|---|
getOMFactory, serialize, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
addChild, buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
| Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
|---|
setComplete |
| Field Detail |
|---|
protected ElementImpl documentElement
protected java.util.Hashtable identifiers
| Constructor Detail |
|---|
public DocumentImpl(DocumentImpl ownerDocument,
OMFactory factory)
ownerDocument -
public DocumentImpl(OMXMLParserWrapper parserWrapper,
OMFactory factory)
public DocumentImpl(OMFactory factory)
| Method Detail |
|---|
public void setType(int nodeType)
throws OMException
setType in interface OMNodeExOMException
public int getType()
throws OMException
OMNode
getType in interface OMNodeOMNode.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 internalSerialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
OMNodeEx
internalSerialize in interface OMNodeExjavax.xml.stream.XMLStreamException
public OMNode getNextOMSibling()
throws OMException
NodeImpl
getNextOMSibling in interface OMNodegetNextOMSibling in class ChildNodeOMExceptionpublic org.w3c.dom.Node getNextSibling()
NodeImpl
getNextSibling in interface org.w3c.dom.NodegetNextSibling in class ChildNode
public OMContainer getParent()
throws OMException
OMNodeOMDocument or OMElement.
getParent in interface OMNodegetParent in class ChildNodeOMContainer of the node.
OMExceptionpublic OMNode getPreviousOMSibling()
NodeImpl
getPreviousOMSibling in interface OMNodegetPreviousOMSibling in class ChildNodepublic org.w3c.dom.Node getPreviousSibling()
NodeImpl
getPreviousSibling in interface org.w3c.dom.NodegetPreviousSibling in class ChildNodepublic void setNextOMSibling(OMNode node)
setNextOMSibling in interface OMNodeExsetNextOMSibling in class ChildNodepublic void setParent(OMContainer element)
setParent in interface OMNodeExsetParent in class ChildNodepublic void setPreviousOMSibling(OMNode node)
setPreviousOMSibling in interface OMNodeExsetPreviousOMSibling in class ChildNodepublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.Nodepublic short getNodeType()
getNodeType in interface org.w3c.dom.Node
public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
createAttribute in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createAttributeNS in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public org.w3c.dom.CDATASection createCDATASection(java.lang.String arg0)
throws org.w3c.dom.DOMException
createCDATASection in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Comment createComment(java.lang.String data)
createComment in interface org.w3c.dom.Documentpublic org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment in interface org.w3c.dom.Document
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
createElement in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(java.lang.String ns,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
createElementNS in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public org.w3c.dom.EntityReference createEntityReference(java.lang.String arg0)
throws org.w3c.dom.DOMException
createEntityReference in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
createProcessingInstruction in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Text createTextNode(java.lang.String value)
createTextNode in interface org.w3c.dom.Documentpublic org.w3c.dom.DocumentType getDoctype()
getDoctype in interface org.w3c.dom.Documentpublic org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById in interface org.w3c.dom.Documentpublic org.w3c.dom.NodeList getElementsByTagName(java.lang.String arg0)
getElementsByTagName in interface org.w3c.dom.Document
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String arg0,
java.lang.String arg1)
getElementsByTagNameNS in interface org.w3c.dom.Documentpublic org.w3c.dom.DOMImplementation getImplementation()
getImplementation in interface org.w3c.dom.Document
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
importNode in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
OMNodeEx
internalSerializeAndConsume in interface OMNodeExjavax.xml.stream.XMLStreamExceptionpublic java.lang.String getCharsetEncoding()
OMDocument
getCharsetEncoding in interface OMDocumentpublic java.lang.String getXMLVersion()
OMDocument
getXMLVersion in interface OMDocumentpublic java.lang.String isStandalone()
OMDocument
isStandalone in interface OMDocumentpublic void setCharsetEncoding(java.lang.String charsetEncoding)
OMDocument
setCharsetEncoding in interface OMDocumentpublic void setOMDocumentElement(OMElement rootElement)
OMDocument
setOMDocumentElement in interface OMDocumentpublic void setStandalone(java.lang.String isStandalone)
setStandalone in interface OMDocument
public void serializeAndConsume(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serializeAndConsume in interface OMDocumentserializeAndConsume in interface OMNodeserializeAndConsume in class NodeImpljavax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output,
OMOutputFormat format)
throws javax.xml.stream.XMLStreamException
OMNode
serialize in interface OMDocumentserialize in interface OMNodeserialize in class NodeImpljavax.xml.stream.XMLStreamExceptionpublic void setXMLVersion(java.lang.String version)
OMDocument
setXMLVersion in interface OMDocumentXML 1.0,
XML 1.1public OMElement getOMDocumentElement()
getOMDocumentElement in interface OMDocumentOMDocument.getOMDocumentElement()public org.w3c.dom.Element getDocumentElement()
getDocumentElement in interface org.w3c.dom.DocumentDocument.getDocumentElement()
protected final void checkQName(java.lang.String prefix,
java.lang.String local)
prefix - prefix of qualified namelocal - local part of qualified namepublic void build()
NodeImpl
build in interface OMNodebuild in class NodeImplprotected void addIdAttr(org.w3c.dom.Attr attr)
protected void removeIdAttr(org.w3c.dom.Attr attr)
public java.lang.String getTextContent()
throws org.w3c.dom.DOMException
getTextContent in interface org.w3c.dom.NodegetTextContent in class ParentNodeorg.w3c.dom.DOMException
public void setTextContent(java.lang.String textContent)
throws org.w3c.dom.DOMException
setTextContent in interface org.w3c.dom.NodesetTextContent in class ParentNodeorg.w3c.dom.DOMException
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node node)
throws org.w3c.dom.DOMException
adoptNode in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic java.lang.String getDocumentURI()
getDocumentURI in interface org.w3c.dom.Documentpublic org.w3c.dom.DOMConfiguration getDomConfig()
getDomConfig in interface org.w3c.dom.Documentpublic java.lang.String getInputEncoding()
getInputEncoding in interface org.w3c.dom.Documentpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface org.w3c.dom.Documentpublic java.lang.String getXmlEncoding()
getXmlEncoding in interface org.w3c.dom.Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface org.w3c.dom.Documentpublic java.lang.String getXmlVersion()
getXmlVersion in interface org.w3c.dom.Documentpublic void normalizeDocument()
normalizeDocument in interface org.w3c.dom.Document
public org.w3c.dom.Node renameNode(org.w3c.dom.Node arg0,
java.lang.String arg1,
java.lang.String arg2)
throws org.w3c.dom.DOMException
renameNode in interface org.w3c.dom.Documentorg.w3c.dom.DOMExceptionpublic void setDocumentURI(java.lang.String arg0)
setDocumentURI in interface org.w3c.dom.Documentpublic void setStrictErrorChecking(boolean arg0)
setStrictErrorChecking in interface org.w3c.dom.Document
public void setXmlStandalone(boolean standalone)
throws org.w3c.dom.DOMException
setXmlStandalone in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
public void setXmlVersion(java.lang.String version)
throws org.w3c.dom.DOMException
setXmlVersion in interface org.w3c.dom.Documentorg.w3c.dom.DOMException
protected void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache,
boolean includeXMLDeclaration)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||