|
||||||||
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
org.exist.dom.NamedNode
org.exist.dom.ElementImpl
ElementImpl.java
Field Summary |
Fields inherited from class org.exist.dom.StoredNode |
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 | |
ElementImpl()
|
|
ElementImpl(ElementImpl other)
|
|
ElementImpl(QName nodeName)
Constructor for the ElementImpl object |
Method Summary | |
boolean |
accept(java.util.Iterator iterator,
NodeVisitor visitor)
Visit the current node. |
void |
addNamespaceMapping(java.lang.String prefix,
java.lang.String ns)
|
void |
appendAttributes(Txn transaction,
org.w3c.dom.NodeList attribs)
|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node child)
|
void |
appendChildInternal(StoredNode prevNode,
StoredNode child)
Append a child to this node. |
void |
appendChildren(Txn transaction,
org.w3c.dom.NodeList nodes,
int child)
|
void |
clear()
Reset this element to its initial state. |
short |
compareDocumentPosition(org.w3c.dom.Node other)
? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node) |
boolean |
declaresNamespacePrefixes()
|
static StoredNode |
deserialize(byte[] data,
int start,
int len,
DocumentImpl doc,
boolean pooled)
Read a node from the specified byte array. |
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()
|
short |
getAttributesCount()
|
java.lang.String |
getBaseURI()
? @see org.w3c.dom.Node#getBaseURI() |
int |
getChildCount()
|
org.w3c.dom.NodeList |
getChildNodes()
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.Object |
getFeature(java.lang.String feature,
java.lang.String version)
? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String) |
org.w3c.dom.Node |
getFirstChild()
|
int |
getIndexType()
|
org.w3c.dom.Node |
getLastChild()
|
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix)
|
java.lang.String |
getNodeValue()
|
int |
getPosition()
|
int |
getPrefixCount()
|
java.util.Iterator |
getPrefixes()
|
org.w3c.dom.TypeInfo |
getSchemaTypeInfo()
? @see org.w3c.dom.Element#getSchemaTypeInfo() |
java.lang.String |
getTagName()
|
java.lang.String |
getTextContent()
? @see org.w3c.dom.Node#getTextContent() |
java.lang.Object |
getUserData(java.lang.String key)
? @see org.w3c.dom.Node#getUserData(java.lang.String) |
boolean |
hasAttribute(java.lang.String name)
|
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
void |
insertAfter(Txn transaction,
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.Node newChild,
org.w3c.dom.Node refChild)
|
void |
insertBefore(Txn transaction,
org.w3c.dom.NodeList nodes,
org.w3c.dom.Node refChild)
Insert a list of nodes at the position before the reference child. |
boolean |
isDefaultNamespace(java.lang.String namespaceURI)
? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String) |
boolean |
isEqualNode(org.w3c.dom.Node arg)
? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node) |
boolean |
isSameNode(org.w3c.dom.Node other)
? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node) |
java.lang.String |
lookupNamespaceURI(java.lang.String prefix)
? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String) |
java.lang.String |
lookupPrefix(java.lang.String namespaceURI)
? @see org.w3c.dom.Node#lookupPrefix(java.lang.String) |
boolean |
preserveSpace()
|
void |
removeAppendAttributes(Txn transaction,
org.w3c.dom.NodeList removeList,
org.w3c.dom.NodeList appendList)
|
void |
removeAttribute(java.lang.String name)
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
|
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String name)
|
org.w3c.dom.Node |
removeChild(Txn transaction,
org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(Txn transaction,
org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
byte[] |
serialize()
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
|
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
|
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
|
void |
setAttributes(short attribNum)
Set the attributes that belong to this node. |
void |
setChildCount(int count)
|
void |
setIdAttribute(java.lang.String name,
boolean isId)
? @see org.w3c.dom.Element#setIdAttribute(java.lang.String, boolean) |
void |
setIdAttributeNode(org.w3c.dom.Attr idAttr,
boolean isId)
? @see org.w3c.dom.Element#setIdAttributeNode(org.w3c.dom.Attr, boolean) |
void |
setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
? @see org.w3c.dom.Element#setIdAttributeNS(java.lang.String, java.lang.String, boolean) |
void |
setIndexType(int idxType)
|
void |
setNamespaceMappings(java.util.Map map)
|
void |
setPosition(int position)
|
void |
setPreserveSpace(boolean preserveWS)
|
void |
setTextContent(java.lang.String textContent)
? @see org.w3c.dom.Node#setTextContent(java.lang.String) |
java.lang.Object |
setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler)
? @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler) |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean top)
|
java.lang.String |
toString(boolean top,
java.util.TreeSet namespaces)
Method toString. |
void |
update(Txn transaction,
org.w3c.dom.NodeList newContent)
Update the contents of this element. |
void |
updateChild(Txn transaction,
org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
Update a child node. |
Methods inherited from class org.exist.dom.NamedNode |
getQName, setNodeName |
Methods inherited from class org.exist.dom.StoredNode |
accept, deserialize, equals, getBroker, getDocId, getInternalAddress, getNextSibling, getNodeId, getNodeType, getOwnerDocument, getParentNode, getPath, getPreviousSibling, release, setInternalAddress, setNodeId, setOwnerDocument |
Methods inherited from class org.exist.dom.NodeImpl |
cloneNode, getLocalName, getNamespaceURI, getNodeName, getPrefix, insertAfter, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, supports, updateChild |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
cloneNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public ElementImpl()
public ElementImpl(QName nodeName)
nodeName
- Description of the Parameterpublic ElementImpl(ElementImpl other)
Method Detail |
public void clear()
clear
in class NamedNode
public void setIndexType(int idxType)
public int getIndexType()
public void setPosition(int position)
public int getPosition()
public boolean declaresNamespacePrefixes()
public byte[] serialize()
serialize
in class StoredNode
public static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc, boolean pooled)
StoredNode
StoredNode.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.
public void addNamespaceMapping(java.lang.String prefix, java.lang.String ns)
public void appendChildInternal(StoredNode prevNode, StoredNode 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 void appendAttributes(Txn transaction, org.w3c.dom.NodeList attribs) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void appendChildren(Txn transaction, org.w3c.dom.NodeList nodes, int child) throws org.w3c.dom.DOMException
appendChildren
in class NodeImpl
org.w3c.dom.DOMException
public short getAttributesCount()
getAttributesCount
in class NodeImpl
public void setAttributes(short attribNum)
setAttributes
in class NodeImpl
attribNum
- The new attributes valuepublic 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()
getChildCount
in class NodeImpl
NodeImpl.getChildCount()
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
getChildNodes
in class NodeImpl
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.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 java.lang.String getNodeValue()
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
Node.getNodeValue()
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
org.w3c.dom.DOMException
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
setAttribute
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public 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
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
setAttributeNode
in interface org.w3c.dom.Element
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
setAttributeNodeNS
in interface org.w3c.dom.Element
public void setChildCount(int count)
count
- The new childCount valuepublic void setNamespaceMappings(java.util.Map map)
public java.util.Iterator getPrefixes()
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
public int getPrefixCount()
public java.lang.String toString()
toString
in class StoredNode
Object.toString()
public java.lang.String toString(boolean top)
toString
in class StoredNode
public java.lang.String toString(boolean top, java.util.TreeSet namespaces)
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 void insertBefore(Txn transaction, org.w3c.dom.NodeList nodes, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in class NodeImpl
org.w3c.dom.DOMException
public void insertAfter(Txn transaction, 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(Txn transaction, org.w3c.dom.NodeList newContent) throws org.w3c.dom.DOMException
newContent
-
org.w3c.dom.DOMException
public void updateChild(Txn transaction, 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(Txn transaction, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in class NodeImpl
org.w3c.dom.DOMException
Node.removeChild(org.w3c.dom.Node)
public void removeAppendAttributes(Txn transaction, org.w3c.dom.NodeList removeList, org.w3c.dom.NodeList appendList)
public org.w3c.dom.Node replaceChild(Txn transaction, org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in class NodeImpl
org.w3c.dom.DOMException
public void setPreserveSpace(boolean preserveWS)
public boolean preserveSpace()
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
public void setIdAttribute(java.lang.String name, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNS(java.lang.String namespaceURI, java.lang.String localName, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNode(org.w3c.dom.Attr idAttr, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public java.lang.String getBaseURI()
getBaseURI
in class NodeImpl
public short compareDocumentPosition(org.w3c.dom.Node other) throws org.w3c.dom.DOMException
compareDocumentPosition
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.String getTextContent() throws org.w3c.dom.DOMException
getTextContent
in class NodeImpl
org.w3c.dom.DOMException
public void setTextContent(java.lang.String textContent) throws org.w3c.dom.DOMException
setTextContent
in class NodeImpl
org.w3c.dom.DOMException
public boolean isSameNode(org.w3c.dom.Node other)
isSameNode
in class NodeImpl
public java.lang.String lookupPrefix(java.lang.String namespaceURI)
lookupPrefix
in class NodeImpl
public boolean isDefaultNamespace(java.lang.String namespaceURI)
isDefaultNamespace
in class NodeImpl
public java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI
in class NodeImpl
public boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode
in class NodeImpl
public java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
getFeature
in class NodeImpl
public java.lang.Object setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)
setUserData
in class NodeImpl
public java.lang.Object getUserData(java.lang.String key)
getUserData
in class NodeImpl
public boolean accept(java.util.Iterator iterator, NodeVisitor visitor)
Visitable
accept
in interface Visitable
accept
in class StoredNode
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |