|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.memtree.NodeImpl
org.exist.memtree.DocumentImpl
An in-memory implementation of Document. This implementation stores all node data in the document object. Nodes from another document, i.e. a persistent document in the database, can be stored as reference nodes, i.e. the nodes are not copied into this document object. Instead a reference is inserted which will only be expanded during serialization.
Field Summary |
Fields inherited from class org.exist.memtree.NodeImpl |
NAMESPACE_NODE, REFERENCE_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 |
Fields inherited from interface org.exist.xquery.value.NodeValue |
IN_MEMORY_NODE, PERSISTENT_NODE |
Fields inherited from interface org.exist.xquery.value.Sequence |
EMPTY_SEQUENCE |
Constructor Summary | |
DocumentImpl(XQueryContext context)
|
Method Summary | |
int |
addAttribute(int nodeNr,
QName qname,
java.lang.String value)
|
void |
addChars(int nodeNr,
char[] ch,
int start,
int len)
|
void |
addChars(int nodeNr,
java.lang.CharSequence s)
|
int |
addNamespace(int nodeNr,
QName qname)
|
int |
addNode(short kind,
short level,
QName qname)
|
void |
addReferenceNode(int nodeNr,
NodeProxy proxy)
|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
? @see org.w3c.dom.Document#adoptNode(org.w3c.dom.Node) |
void |
appendChars(int nodeNr,
char[] ch,
int start,
int len)
|
void |
appendChars(int nodeNr,
java.lang.CharSequence s)
|
void |
copyTo(NodeImpl node,
DocumentBuilderReceiver receiver)
Copy the document fragment starting at the specified node to the given document builder. |
org.w3c.dom.Attr |
createAttribute(java.lang.String arg0)
|
org.w3c.dom.Attr |
createAttributeNS(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String arg0)
|
org.w3c.dom.Comment |
createComment(java.lang.String arg0)
|
org.w3c.dom.DocumentFragment |
createDocumentFragment()
|
org.w3c.dom.Element |
createElement(java.lang.String arg0)
|
org.w3c.dom.Element |
createElementNS(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String arg0)
|
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.Text |
createTextNode(java.lang.String arg0)
|
void |
expand()
Expand all reference nodes in the current document, i.e. |
DocumentImpl |
expandRefs(NodeImpl rootNode)
|
NodeImpl |
getAttribute(int nodeNr)
|
int |
getAttributesCountFor(int nodeNumber)
|
int |
getChildCount()
|
int |
getChildCountFor(int nr)
|
org.w3c.dom.DocumentType |
getDoctype()
|
org.w3c.dom.Element |
getDocumentElement()
|
java.lang.String |
getDocumentURI()
? @see org.w3c.dom.Document#getDocumentURI() |
org.w3c.dom.DOMConfiguration |
getDomConfig()
? @see org.w3c.dom.Document#getDomConfig() |
org.w3c.dom.Element |
getElementById(java.lang.String arg0)
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String arg0,
java.lang.String arg1)
|
org.w3c.dom.Node |
getFirstChild()
|
int |
getFirstChildFor(int nodeNumber)
|
org.w3c.dom.DOMImplementation |
getImplementation()
|
java.lang.String |
getInputEncoding()
? @see org.w3c.dom.Document#getInputEncoding() |
int |
getLastNode()
|
NodeImpl |
getNamespaceNode(int nodeNr)
|
int |
getNextSiblingFor(int nodeNumber)
|
NodeImpl |
getNode(int nodeNr)
|
short |
getNodeType(int nodeNr)
|
org.w3c.dom.Document |
getOwnerDocument()
|
org.w3c.dom.Node |
getParentNode()
|
int |
getParentNodeFor(int nodeNumber)
|
int |
getSize()
|
boolean |
getStrictErrorChecking()
? @see org.w3c.dom.Document#getStrictErrorChecking() |
short |
getTreeLevel(int nodeNr)
|
java.lang.String |
getXmlEncoding()
? @see org.w3c.dom.Document#getXmlEncoding() |
boolean |
getXmlStandalone()
? @see org.w3c.dom.Document#getXmlStandalone() |
java.lang.String |
getXmlVersion()
? @see org.w3c.dom.Document#getXmlVersion() |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node arg0,
boolean arg1)
|
Int2ObjectHashMap |
makePersistent()
|
void |
normalizeDocument()
? @see org.w3c.dom.Document#normalizeDocument() |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
? @see org.w3c.dom.Document#renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String) |
void |
replaceReferenceNode(int nodeNr,
java.lang.CharSequence ch)
|
void |
reset()
|
void |
setContext(XQueryContext context)
|
void |
setDocumentURI(java.lang.String documentURI)
? @see org.w3c.dom.Document#setDocumentURI(java.lang.String) |
void |
setStrictErrorChecking(boolean strictErrorChecking)
? @see org.w3c.dom.Document#setStrictErrorChecking(boolean) |
void |
setXmlStandalone(boolean xmlStandalone)
? @see org.w3c.dom.Document#setXmlStandalone(boolean) |
void |
setXmlVersion(java.lang.String xmlVersion)
? @see org.w3c.dom.Document#setXmlVersion(java.lang.String) |
void |
streamTo(Serializer serializer,
NodeImpl node,
Receiver receiver)
Stream the specified document fragment to a receiver. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public DocumentImpl(XQueryContext context)
Method Detail |
public void reset()
public int getSize()
public int addNode(short kind, short level, QName qname)
public void addChars(int nodeNr, char[] ch, int start, int len)
public void addChars(int nodeNr, java.lang.CharSequence s)
public void appendChars(int nodeNr, char[] ch, int start, int len)
public void appendChars(int nodeNr, java.lang.CharSequence s)
public void addReferenceNode(int nodeNr, NodeProxy proxy)
public void replaceReferenceNode(int nodeNr, java.lang.CharSequence ch)
public int addAttribute(int nodeNr, QName qname, java.lang.String value) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public int addNamespace(int nodeNr, QName qname)
public short getTreeLevel(int nodeNr)
public int getLastNode()
public short getNodeType(int nodeNr)
public NodeImpl getAttribute(int nodeNr) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public NodeImpl getNamespaceNode(int nodeNr) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public NodeImpl getNode(int nodeNr) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
getParentNode
in class NodeImpl
public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
getFirstChild
in class NodeImpl
public int getAttributesCountFor(int nodeNumber)
public int getChildCountFor(int nr)
public int getFirstChildFor(int nodeNumber)
public int getNextSiblingFor(int nodeNumber)
public int getParentNodeFor(int nodeNumber)
public org.w3c.dom.Element createElement(java.lang.String arg0) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment
in interface org.w3c.dom.Document
public org.w3c.dom.Text createTextNode(java.lang.String arg0)
createTextNode
in interface org.w3c.dom.Document
public org.w3c.dom.Comment createComment(java.lang.String arg0)
createComment
in interface org.w3c.dom.Document
public org.w3c.dom.CDATASection createCDATASection(java.lang.String arg0) throws org.w3c.dom.DOMException
createCDATASection
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String arg0, java.lang.String arg1) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttribute(java.lang.String arg0) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.EntityReference createEntityReference(java.lang.String arg0) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Document
public org.w3c.dom.Node importNode(org.w3c.dom.Node arg0, boolean arg1) throws org.w3c.dom.DOMException
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Element createElementNS(java.lang.String arg0, java.lang.String arg1) throws org.w3c.dom.DOMException
createElementNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.Attr createAttributeNS(java.lang.String arg0, java.lang.String arg1) throws org.w3c.dom.DOMException
createAttributeNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String arg0, java.lang.String arg1)
getElementsByTagNameNS
in interface org.w3c.dom.Document
public org.w3c.dom.Element getElementById(java.lang.String arg0)
getElementById
in interface org.w3c.dom.Document
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
getOwnerDocument
in class NodeImpl
public void copyTo(NodeImpl node, DocumentBuilderReceiver receiver) throws org.xml.sax.SAXException
node
- receiver
-
org.xml.sax.SAXException
public void expand() throws org.w3c.dom.DOMException
expand
in class NodeImpl
org.w3c.dom.DOMException
public DocumentImpl expandRefs(NodeImpl rootNode) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void streamTo(Serializer serializer, NodeImpl node, Receiver receiver) throws org.xml.sax.SAXException
serializer
- node
- receiver
-
org.xml.sax.SAXException
public Int2ObjectHashMap makePersistent() throws XPathException
XPathException
public int getChildCount()
public java.lang.String getInputEncoding()
public java.lang.String getXmlEncoding()
public boolean getXmlStandalone()
public void setXmlStandalone(boolean xmlStandalone) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public java.lang.String getXmlVersion()
public void setXmlVersion(java.lang.String xmlVersion) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public boolean getStrictErrorChecking()
public void setStrictErrorChecking(boolean strictErrorChecking)
public java.lang.String getDocumentURI()
public void setDocumentURI(java.lang.String documentURI)
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.DOMConfiguration getDomConfig()
public void normalizeDocument()
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setContext(XQueryContext context)
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |