|
||||||||
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.ElementImpl
ElementImpl.java
Field Summary | |
protected int |
children
|
protected long |
firstChild
|
protected java.util.ArrayList |
prefixes
|
Fields inherited from class org.exist.dom.NodeImpl |
attributes, gid, internalAddress, nodeName, nodeNameRef, nodeType, 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 | |
ElementImpl()
Constructor for the ElementImpl object |
|
ElementImpl(long gid)
Constructor for the ElementImpl object |
|
ElementImpl(long gid,
java.lang.String nodeName)
Constructor for the ElementImpl object |
|
ElementImpl(java.lang.String nodeName)
Constructor for the ElementImpl object |
Method Summary | |
void |
addNamespacePrefix(java.lang.String prefix)
|
void |
addPrefix(java.lang.String pfx)
|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node child)
|
void |
appendChildInternal(NodeImpl child)
Append a child to this node. |
protected org.w3c.dom.Node |
appendChildren(long gid,
NodeImpl last,
org.w3c.dom.NodeList nodes,
boolean index)
Internal append. |
org.w3c.dom.Node |
appendChildren(org.w3c.dom.NodeList nodes)
|
void |
clear()
Reset this element to its initial state. |
boolean |
declaresNamespacePrefixes()
Description of the Method |
static NodeImpl |
deserialize(byte[] data,
int start,
int len,
DocumentImpl doc)
Description of the Method |
long |
firstChildID()
Description of the Method |
java.lang.String |
getAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.NamedNodeMap |
getAttributes()
|
int |
getChildCount()
Method getChildCount. |
org.w3c.dom.NodeList |
getChildNodes()
Gets the childNodes attribute of the NodeImpl object |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
org.w3c.dom.Node |
getFirstChild()
|
org.w3c.dom.Node |
getLastChild()
|
java.util.Iterator |
getNamespacePrefixes()
Gets the namespacePrefixes attribute of the DocumentImpl object |
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getNodeName()
|
java.lang.String |
getNodeValue()
|
int |
getSymbol()
|
java.lang.String |
getTagName()
|
boolean |
hasAttribute(java.lang.String name)
|
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
insertAfter(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
Insert a list of nodes at the position following the reference child. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
Insert a list of nodes at the position before the reference child. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
long |
lastChildID()
Description of the Method |
void |
removeAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
Description of the Method |
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String name)
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
byte[] |
serialize()
Description of the Method |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute attribute of the ElementImpl object |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
Sets the attributeNode attribute of the ElementImpl object |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
Sets the attributeNodeNS attribute of the ElementImpl object |
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
Sets the attributeNS attribute of the ElementImpl object |
void |
setChildCount(int count)
Sets the childCount attribute of the ElementImpl object |
void |
setNodeName(java.lang.String name)
Sets the nodeName attribute of the ElementImpl object |
void |
setPrefixes(java.util.Collection pfx)
Sets the prefixes attribute of the ElementImpl object |
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 |
java.lang.String |
toString(boolean top,
java.util.ArrayList prefixes)
Method toString. |
void |
update(org.w3c.dom.NodeList newContent)
Update the contents of this element. |
void |
updateChild(org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
Update a child node. |
Methods inherited from class org.exist.dom.NodeImpl |
cloneNode, equals, getAttributesCount, getBroker, getGID, getInternalAddress, getLastNode, getLastNode, getLocalName, getNextSibling, getNodeNameRef, getNodeType, getOwnerDocument, getParentGID, getParentNode, getPath, getPrefix, getPreviousSibling, insertAfter, isSupported, normalize, setAttributes, setGID, setInternalAddress, setNodeNameRef, setNodeValue, setOwnerDocument, setPrefix, supports, toSAX |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
cloneNode, getLocalName, getNextSibling, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, isSupported, normalize, setNodeValue, setPrefix |
Field Detail |
protected int children
protected long firstChild
protected java.util.ArrayList prefixes
Constructor Detail |
public ElementImpl()
public ElementImpl(long gid)
gid
- Description of the Parameterpublic ElementImpl(java.lang.String nodeName)
nodeName
- Description of the Parameterpublic ElementImpl(long gid, java.lang.String nodeName)
gid
- Description of the ParameternodeName
- Description of the ParameterMethod Detail |
public void clear()
clear
in class NodeImpl
NodeImpl.clear()
public static NodeImpl deserialize(byte[] data, int start, int len, DocumentImpl doc)
data
- Description of the Parameterdoc
- Description of the Parameter
public int getSymbol()
public void addNamespacePrefix(java.lang.String prefix)
public void appendChildInternal(NodeImpl child) throws org.w3c.dom.DOMException
child
-
org.w3c.dom.DOMException
public org.w3c.dom.Node appendChild(org.w3c.dom.Node child) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
appendChild
in class NodeImpl
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
appendChildren
in class NodeImpl
org.w3c.dom.DOMException
protected org.w3c.dom.Node appendChildren(long gid, NodeImpl last, org.w3c.dom.NodeList nodes, boolean index) throws org.w3c.dom.DOMException
last
-
org.w3c.dom.DOMException
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
getNamespaceURI
in class NodeImpl
Node.getNamespaceURI()
public boolean declaresNamespacePrefixes()
public long firstChildID()
NodeImpl
firstChildID
in class NodeImpl
NodeImpl.firstChildID()
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface org.w3c.dom.Element
Element.getAttribute(java.lang.String)
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNS
in interface org.w3c.dom.Element
Element.getAttributeNS(java.lang.String, java.lang.String)
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode
in interface org.w3c.dom.Element
Element.getAttributeNode(java.lang.String)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
getAttributeNodeNS
in interface org.w3c.dom.Element
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
getAttributes
in class NodeImpl
Node.getAttributes()
public int getChildCount()
NodeImpl
getChildCount
in class NodeImpl
NodeImpl.getChildCount()
public org.w3c.dom.NodeList getChildNodes()
NodeImpl
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class NodeImpl
Node.getChildNodes()
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
getElementsByTagName
in interface org.w3c.dom.Element
Element.getElementsByTagName(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Element
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
getFirstChild
in class NodeImpl
Node.getFirstChild()
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
getLastChild
in class NodeImpl
Node.getLastChild()
public java.util.Iterator getNamespacePrefixes()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
Node.getNodeName()
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
org.w3c.dom.DOMException
Node.getNodeValue()
public java.lang.String getTagName()
getTagName
in interface org.w3c.dom.Element
Element.getTagName()
public boolean hasAttribute(java.lang.String name)
hasAttribute
in interface org.w3c.dom.Element
Element.hasAttribute(java.lang.String)
public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
hasAttributeNS
in interface org.w3c.dom.Element
Element.hasAttributeNS(java.lang.String, java.lang.String)
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
hasAttributes
in class NodeImpl
Node.hasAttributes()
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
hasChildNodes
in class NodeImpl
Node.hasChildNodes()
public long lastChildID()
lastChildID
in class NodeImpl
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
removeAttribute
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
Element.removeAttribute(java.lang.String)
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String name) throws org.w3c.dom.DOMException
removeAttributeNS
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
Element.removeAttributeNS(java.lang.String, java.lang.String)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
removeAttributeNode
in interface org.w3c.dom.Element
oldAttr
- Description of the Parameter
org.w3c.dom.DOMException
- Description of the Exceptionpublic byte[] serialize()
serialize
in class NodeImpl
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
name
- The new attribute valuevalue
- The new attribute value
org.w3c.dom.DOMException
- Description of the Exceptionpublic void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws org.w3c.dom.DOMException
setAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- The new attributeNS valuequalifiedName
- The new attributeNS valuevalue
- The new attributeNS value
org.w3c.dom.DOMException
- Description of the Exceptionpublic org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
newAttr
- The new attributeNode value
org.w3c.dom.DOMException
- Description of the Exceptionpublic org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
setAttributeNodeNS
in interface org.w3c.dom.Element
newAttr
- The new attributeNodeNS value
public void setChildCount(int count)
setChildCount
in class NodeImpl
count
- The new childCount valuepublic void setNodeName(java.lang.String name)
setNodeName
in class NodeImpl
name
- The new nodeName valuepublic void setPrefixes(java.util.Collection pfx)
pfx
- The new prefixes valuepublic void addPrefix(java.lang.String pfx)
public void toSAX(org.xml.sax.ContentHandler contentHandler, org.xml.sax.ext.LexicalHandler lexicalHandler, boolean first, java.util.ArrayList prefixes) throws org.xml.sax.SAXException
toSAX
in class NodeImpl
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()
NodeImpl
toString
in class NodeImpl
Object.toString()
public java.lang.String toString(boolean top)
NodeImpl
toString
in class NodeImpl
top
- Description of the Parameter
NodeImpl.toString(boolean)
public java.lang.String toString(boolean top, java.util.ArrayList prefixes)
top
- prefixes
-
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
insertBefore
in class NodeImpl
org.w3c.dom.DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node insertBefore(org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in class NodeImpl
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
insertAfter
in class NodeImpl
org.w3c.dom.DOMException
public void update(org.w3c.dom.NodeList newContent) throws org.w3c.dom.DOMException
newContent
-
org.w3c.dom.DOMException
public void updateChild(org.w3c.dom.Node oldChild, org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
updateChild
in class NodeImpl
oldChild
- newChild
-
org.w3c.dom.DOMException
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
removeChild
in class NodeImpl
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
replaceChild
in class NodeImpl
org.w3c.dom.DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |