|
||||||||||
| 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 int |
NODE_IMPL_ROOT_NODE_GID
|
static int |
NODE_IMPL_UNKNOWN_GID
|
static long |
UNKNOWN_NODE_IMPL_ADDRESS
|
static short |
UNKNOWN_NODE_IMPL_NODE_TYPE
|
| Fields inherited from class org.exist.dom.NodeImpl |
LOG |
| 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(long gid)
|
|
StoredNode(short nodeType)
|
|
StoredNode(short nodeType,
long gid)
|
|
StoredNode(StoredNode other)
Copy constructor: creates a copy of the other node. |
|
| Method Summary | |
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)
|
long |
firstChildID()
|
DBBroker |
getBroker()
Return the broker instance used to create this node. |
long |
getGID()
Get the unique identifier assigned to this node. |
long |
getInternalAddress()
Get the internal storage address of this node |
protected StoredNode |
getLastNode(java.util.Iterator iterator,
StoredNode node)
|
protected StoredNode |
getLastNode(StoredNode node)
|
org.w3c.dom.Node |
getNextSibling()
|
short |
getNodeType()
|
org.w3c.dom.Document |
getOwnerDocument()
|
long |
getParentGID()
Get the unique node identifier of this node's parent node. |
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 |
setGID(long gid)
Set the unique node identifier of this node. |
void |
setInternalAddress(long internalAddress)
Set the internal storage address of this node. |
void |
setOwnerDocument(org.w3c.dom.Document ownerDocument)
Set the owner document. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean top)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NODE_IMPL_UNKNOWN_GID
public static final int NODE_IMPL_ROOT_NODE_GID
public static final long UNKNOWN_NODE_IMPL_ADDRESS
public static final short UNKNOWN_NODE_IMPL_NODE_TYPE
| Constructor Detail |
public StoredNode(short nodeType)
public StoredNode(long gid)
public StoredNode(short nodeType,
long gid)
public StoredNode(StoredNode other)
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)
method of the corresponding node class.
data - start - len - doc -
public static StoredNode deserialize(byte[] data,
int start,
int len,
DocumentImpl doc,
boolean pooled)
#deserialize(byte[], int, int)
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()
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public DBBroker getBroker()
public long getGID()
public void setGID(long gid)
gid - The new gID valuepublic long getInternalAddress()
public void setInternalAddress(long internalAddress)
public short getNodeType()
Node.getNodeType()public org.w3c.dom.Document getOwnerDocument()
Node.getOwnerDocument()public void setOwnerDocument(org.w3c.dom.Document ownerDocument)
public long getParentGID()
public long firstChildID()
public org.w3c.dom.Node getParentNode()
Node.getParentNode()public org.w3c.dom.Node getPreviousSibling()
Node.getPreviousSibling()public org.w3c.dom.Node getNextSibling()
Node.getNextSibling()protected StoredNode getLastNode(StoredNode node)
protected StoredNode getLastNode(java.util.Iterator iterator,
StoredNode node)
public NodePath getPath()
public java.lang.String toString()
public java.lang.String toString(boolean top)
public void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||