|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.dom.NodeImpl
org.exist.dom.StoredNode
The base class for all persistent DOM nodes in the database.
Field Summary | |
static long |
UNKNOWN_NODE_IMPL_ADDRESS
|
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 |
Constructor Summary | |
StoredNode(NodeProxy other)
|
|
StoredNode(short nodeType)
|
|
StoredNode(short nodeType,
NodeId nodeId)
|
|
StoredNode(StoredNode other)
Copy constructor: creates a copy of the other node. |
Method Summary | |
boolean |
accept(java.util.Iterator iterator,
NodeVisitor visitor)
Visit the current node. |
boolean |
accept(NodeVisitor visitor)
|
void |
clear()
Reset this object to its initial state. |
static StoredNode |
deserialize(byte[] data,
int start,
int len,
DocumentImpl doc)
Read a node from the specified byte array. |
static StoredNode |
deserialize(byte[] data,
int start,
int len,
DocumentImpl doc,
boolean pooled)
Read a node from the specified byte array. |
boolean |
equals(java.lang.Object obj)
|
DBBroker |
getBroker()
Return the broker instance used to create this node. |
int |
getDocId()
|
long |
getInternalAddress()
Get the internal storage address of this node |
org.w3c.dom.Node |
getNextSibling()
|
NodeId |
getNodeId()
|
short |
getNodeType()
|
org.w3c.dom.Document |
getOwnerDocument()
|
org.w3c.dom.Node |
getParentNode()
|
NodePath |
getPath()
|
org.w3c.dom.Node |
getPreviousSibling()
|
QName |
getQName()
|
void |
release()
Release all memory resources hold by this node. |
byte[] |
serialize()
|
void |
setInternalAddress(long internalAddress)
Set the internal storage address of this node. |
void |
setNodeId(NodeId dln)
|
void |
setOwnerDocument(DocumentImpl ownerDocument)
Set the owner document. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean top)
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long UNKNOWN_NODE_IMPL_ADDRESS
Constructor Detail |
public StoredNode(short nodeType)
public StoredNode(short nodeType, NodeId nodeId)
public StoredNode(StoredNode other)
other
- public StoredNode(NodeProxy other)
Method Detail |
public void clear()
public byte[] serialize()
public static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc)
deserialize(byte[], int, int,DocumentImpl,boolean)
method of the corresponding node class.
>>>>>>> .merge-right.r4159
data
- start
- len
- doc
- public static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc, boolean pooled)
deserialize(byte[], int, int, DocumentImpl, boolean)
=======
This checks the node type and calls the deserialize(byte[], int, int,boolean)
>>>>>>> .merge-right.r4159
method of the corresponding node class. The node will be allocated in the pool
and should be released once it is no longer needed.
data
- start
- len
- doc
- public QName getQName()
getQName
in interface QNameable
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public DBBroker getBroker()
public void setNodeId(NodeId dln)
public NodeId getNodeId()
public long getInternalAddress()
public void setInternalAddress(long internalAddress)
internalAddress
- The new internalAddress valuepublic short getNodeType()
getNodeType
in interface org.w3c.dom.Node
Node.getNodeType()
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
Node.getOwnerDocument()
public void setOwnerDocument(DocumentImpl ownerDocument)
ownerDocument
- The new ownerDocument valuepublic int getDocId()
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
Node.getParentNode()
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
Node.getPreviousSibling()
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
Node.getNextSibling()
public NodePath getPath()
public java.lang.String toString()
public java.lang.String toString(boolean top)
public void release()
public boolean accept(NodeVisitor visitor)
public boolean accept(java.util.Iterator iterator, NodeVisitor visitor)
Visitable
accept
in interface Visitable
iterator
- an iterator positioned at the current nodevisitor
- the visitor to call.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |