|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.dom.NodeImpl
The base class for all DOM objects.
Field Summary | |
protected short |
attributes
|
protected long |
gid
|
protected long |
internalAddress
|
protected java.lang.String |
nodeName
|
protected int |
nodeNameRef
|
protected short |
nodeType
|
protected DocumentImpl |
ownerDocument
|
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 | |
NodeImpl()
Constructor for the NodeImpl object |
|
NodeImpl(long gid)
Constructor for the NodeImpl object |
|
NodeImpl(org.w3c.dom.Node n)
Constructor for the NodeImpl object |
|
NodeImpl(short nodeType)
Constructor for the NodeImpl object |
|
NodeImpl(short nodeType,
long gid)
Constructor for the NodeImpl object |
|
NodeImpl(short nodeType,
java.lang.String nodeName)
Constructor for the NodeImpl object |
|
NodeImpl(short nodeType,
java.lang.String nodeName,
long gid)
Constructor for the NodeImpl object |
Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node child)
|
org.w3c.dom.Node |
appendChildren(org.w3c.dom.NodeList nodes)
|
void |
clear()
Reset this object to its initial state. |
org.w3c.dom.Node |
cloneNode(boolean deep)
|
static NodeImpl |
deserialize(byte[] data,
int start,
int len,
DocumentImpl doc)
Deserialize a node from a byte array. |
boolean |
equals(java.lang.Object obj)
|
long |
firstChildID()
Description of the Method |
org.w3c.dom.NamedNodeMap |
getAttributes()
|
short |
getAttributesCount()
Method getAttributesCount. |
DBBroker |
getBroker()
Gets the broker attribute of the NodeImpl object |
int |
getChildCount()
Method getChildCount. |
org.w3c.dom.NodeList |
getChildNodes()
Gets the childNodes attribute of the NodeImpl object |
org.w3c.dom.Node |
getFirstChild()
|
long |
getGID()
Get the unique identifier assigned to this node |
long |
getInternalAddress()
Get the internal storage address of this node |
org.w3c.dom.Node |
getLastChild()
|
protected NodeImpl |
getLastNode(java.util.Iterator iterator,
NodeImpl node)
|
protected NodeImpl |
getLastNode(NodeImpl node)
|
java.lang.String |
getLocalName()
|
java.lang.String |
getNamespaceURI()
|
org.w3c.dom.Node |
getNextSibling()
|
java.lang.String |
getNodeName()
|
int |
getNodeNameRef()
Returns the nodeNameRef. |
short |
getNodeType()
|
java.lang.String |
getNodeValue()
|
org.w3c.dom.Document |
getOwnerDocument()
|
long |
getParentGID()
Get the unique node identifier of this node's parent node. |
org.w3c.dom.Node |
getParentNode()
|
java.lang.StringBuffer |
getPath()
|
java.lang.String |
getPrefix()
|
org.w3c.dom.Node |
getPreviousSibling()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertAfter(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
|
org.w3c.dom.Node |
insertAfter(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
|
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
boolean |
isSupported(java.lang.String key,
java.lang.String value)
|
long |
lastChildID()
Get the unique node identifier of the last child of this node. |
void |
normalize()
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node node)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
byte[] |
serialize()
|
void |
setAttributes(short attribNum)
Set the attributes that belong to this node. |
protected void |
setChildCount(int count)
Set the number of children. |
void |
setGID(long gid)
Set the unique node identifier of this node. |
void |
setInternalAddress(long address)
Set the internal storage address of this node. |
void |
setNodeName(java.lang.String name)
Set the node name. |
void |
setNodeNameRef(int nodeNameRef)
Sets the nodeNameRef. |
void |
setNodeValue(java.lang.String value)
Set the node value. |
void |
setOwnerDocument(org.w3c.dom.Document doc)
Set the owner document. |
void |
setPrefix(java.lang.String prefix)
Sets the prefix attribute of the NodeImpl object |
boolean |
supports(java.lang.String feature,
java.lang.String version)
Method supports. |
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
boolean first)
Description of the Method |
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
boolean first,
java.util.ArrayList prefixes)
Description of the Method |
java.lang.String |
toString()
Description of the Method |
java.lang.String |
toString(boolean top)
Description of the Method |
void |
updateChild(org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
Update a child node. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected short attributes
protected long gid
protected long internalAddress
protected java.lang.String nodeName
protected int nodeNameRef
protected short nodeType
protected DocumentImpl ownerDocument
Constructor Detail |
public NodeImpl()
public NodeImpl(short nodeType)
nodeType
- Description of the Parameterpublic NodeImpl(org.w3c.dom.Node n)
n
- Description of the Parameterpublic NodeImpl(long gid)
gid
- Description of the Parameterpublic NodeImpl(short nodeType, long gid)
nodeType
- Description of the Parametergid
- Description of the Parameterpublic NodeImpl(short nodeType, java.lang.String nodeName)
nodeType
- Description of the ParameternodeName
- Description of the Parameterpublic NodeImpl(short nodeType, java.lang.String nodeName, long gid)
nodeType
- Description of the ParameternodeName
- Description of the Parametergid
- Description of the ParameterMethod Detail |
public static NodeImpl deserialize(byte[] data, int start, int len, DocumentImpl doc)
data
- Description of the Parameterdoc
- Description of the Parameter
public void clear()
public org.w3c.dom.Node appendChild(org.w3c.dom.Node child) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.appendChild(org.w3c.dom.Node)
public org.w3c.dom.Node appendChildren(org.w3c.dom.NodeList nodes) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
Node.cloneNode(boolean)
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public long firstChildID()
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
Node.getAttributes()
public short getAttributesCount()
public DBBroker getBroker()
public int getChildCount()
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
Node.getFirstChild()
public long getGID()
public long getInternalAddress()
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
Node.getLastChild()
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
Node.getLocalName()
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
Node.getNamespaceURI()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
Node.getNodeName()
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
Node.getNodeType()
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.getNodeValue()
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
Node.getOwnerDocument()
public long getParentGID()
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
Node.getParentNode()
public java.lang.StringBuffer getPath()
public java.lang.String getPrefix()
getPrefix
in interface org.w3c.dom.Node
Node.getPrefix()
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 boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
Node.hasAttributes()
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
Node.hasChildNodes()
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node insertAfter(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Node insertAfter(org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Node insertBefore(org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public boolean isSupported(java.lang.String key, java.lang.String value)
isSupported
in interface org.w3c.dom.Node
Node.isSupported(java.lang.String, java.lang.String)
public long lastChildID()
public void normalize()
normalize
in interface org.w3c.dom.Node
Node.normalize()
public org.w3c.dom.Node removeChild(org.w3c.dom.Node node) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.removeChild(org.w3c.dom.Node)
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public byte[] serialize()
public void setAttributes(short attribNum)
attribNum
- The new attributes valueprotected void setChildCount(int count)
count
- The new childCount valuepublic void setGID(long gid)
gid
- The new gID valuepublic void setInternalAddress(long address)
address
- The new internalAddress valuepublic void setNodeName(java.lang.String name)
name
- The new nodeName valuepublic void setNodeValue(java.lang.String value) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
value
- The new nodeValue value
org.w3c.dom.DOMException
- Description of the Exceptionpublic void setOwnerDocument(org.w3c.dom.Document doc)
doc
- The new ownerDocument valuepublic void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMException
setPrefix
in interface org.w3c.dom.Node
prefix
- The new prefix value
org.w3c.dom.DOMException
- Description of the Exceptionpublic boolean supports(java.lang.String feature, java.lang.String version)
feature
- version
-
public void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first) throws org.xml.sax.SAXException
contentHandler
- Description of the ParameterlexicalHandler
- Description of the Parameterfirst
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first, java.util.ArrayList prefixes) throws org.xml.sax.SAXException
contentHandler
- Description of the ParameterlexicalHandler
- Description of the Parameterfirst
- Description of the Parameterprefixes
- Description of the Parameter
org.xml.sax.SAXException
- Description of the Exceptionpublic java.lang.String toString()
public java.lang.String toString(boolean top)
top
- Description of the Parameter
public int getNodeNameRef()
public void setNodeNameRef(int nodeNameRef)
nodeNameRef
- The nodeNameRef to setprotected NodeImpl getLastNode(NodeImpl node)
protected NodeImpl getLastNode(java.util.Iterator iterator, NodeImpl node)
public void updateChild(org.w3c.dom.Node oldChild, org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
oldChild
- newChild
-
org.w3c.dom.DOMException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |