|
||||||||||
| 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
public class ElementImpl
ElementImpl.java
| Field Summary | |
|---|---|
static int |
LENGTH_ATTRIBUTES_COUNT
|
static int |
LENGTH_ELEMENT_CHILD_COUNT
|
static int |
LENGTH_NS_ID
|
static int |
LENGTH_PREFIX_LENGTH
|
| Fields inherited from class org.exist.dom.NamedNode |
|---|
nodeName |
| Fields inherited from class org.exist.dom.StoredNode |
|---|
LENGTH_SIGNATURE_LENGTH, nodeId, ownerDocument, UNKNOWN_NODE_IMPL_ADDRESS |
| 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_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, 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 | |
|---|---|
java.lang.String |
_getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Deprecated. |
boolean |
accept(java.util.Iterator<StoredNode> 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. |
protected void |
appendChildren(Txn transaction,
NodeId newNodeId,
NodeId followingId,
NodeImplRef last,
NodePath lastPath,
org.w3c.dom.NodeList nodes,
StreamListener listener)
Internal append. |
void |
appendChildren(Txn transaction,
org.w3c.dom.NodeList nodes,
int child)
|
protected XmldbURI |
calculateBaseURI()
|
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)
|
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.util.Map<java.lang.String,java.lang.String> |
getNamespaceMap()
|
java.lang.String |
getNodeValue()
|
int |
getPosition()
|
int |
getPrefixCount()
|
java.util.Iterator<java.lang.String> |
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 |
isDirty()
Returns true if the node was modified recently and nodes were inserted at the start or in the middle of its children. |
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()
|
static void |
readNamespaceDecls(java.util.List<java.lang.String[]> namespaces,
Value value,
DocumentImpl document,
NodeId nodeId)
|
static QName |
readQName(Value value,
DocumentImpl document,
NodeId nodeId)
|
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)
Replaces the oldNode with the newChild |
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)
Set the number of children. |
void |
setDirty(boolean dirty)
|
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<java.lang.String,java.lang.String> 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<java.lang.String> namespaces)
Method toString. |
void |
update(Txn transaction,
org.w3c.dom.NodeList newContent)
Update the contents of this element. |
StoredNode |
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, compareTo, deserialize, equals, getDocId, getDocument, getDocumentAtExist, getInternalAddress, getLastNode, getLastNode, getNextSibling, getNodeId, getNodeNumber, getNodeType, getOwnerDocument, getParentNode, getParentStoredNode, getPath, 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 |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.exist.dom.NodeAtExist |
|---|
getDocumentAtExist, getNodeId, getNodeNumber |
| Methods inherited from interface org.exist.dom.QNameable |
|---|
getQName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.w3c.dom.Node |
|---|
cloneNode, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
|---|
public static final int LENGTH_ELEMENT_CHILD_COUNT
public static final int LENGTH_ATTRIBUTES_COUNT
public static final int LENGTH_NS_ID
public static final int LENGTH_PREFIX_LENGTH
| Constructor Detail |
|---|
public ElementImpl()
public ElementImpl(QName nodeName)
nodeName - Description of the Parameterpublic ElementImpl(ElementImpl other)
| Method Detail |
|---|
public void clear()
clear in class NamedNodepublic void setIndexType(int idxType)
public int getIndexType()
public boolean isDirty()
StoredNode
isDirty in class StoredNodepublic void setDirty(boolean dirty)
setDirty in class StoredNodepublic 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)
public static QName readQName(Value value,
DocumentImpl document,
NodeId nodeId)
public static void readNamespaceDecls(java.util.List<java.lang.String[]> namespaces,
Value value,
DocumentImpl document,
NodeId nodeId)
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.NodeappendChild in class NodeImplorg.w3c.dom.DOMExceptionNode.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 NodeImplorg.w3c.dom.DOMException
protected void appendChildren(Txn transaction,
NodeId newNodeId,
NodeId followingId,
NodeImplRef last,
NodePath lastPath,
org.w3c.dom.NodeList nodes,
StreamListener listener)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic short getAttributesCount()
getAttributesCount in class NodeImplpublic void setAttributes(short attribNum)
setAttributes in class NodeImplattribNum - The new attributes valuepublic java.lang.String getAttribute(java.lang.String name)
getAttribute in interface org.w3c.dom.ElementElement.getAttribute(java.lang.String)
public java.lang.String getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNS in interface org.w3c.dom.ElementElement.getAttributeNS(java.lang.String, java.lang.String)
@Deprecated
public java.lang.String _getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
getAttributeNode in interface org.w3c.dom.ElementElement.getAttributeNode(java.lang.String)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
getAttributeNodeNS in interface org.w3c.dom.ElementElement.getAttributeNodeNS(java.lang.String, java.lang.String)public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes in interface org.w3c.dom.NodegetAttributes in class NodeImplNode.getAttributes()public int getChildCount()
getChildCount in class NodeImplNodeImpl.getChildCount()public org.w3c.dom.NodeList getChildNodes()
getChildNodes in interface org.w3c.dom.NodegetChildNodes in class NodeImplpublic org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
getElementsByTagName in interface org.w3c.dom.ElementElement.getElementsByTagName(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
getElementsByTagNameNS in interface org.w3c.dom.ElementElement.getElementsByTagNameNS(java.lang.String, java.lang.String)public org.w3c.dom.Node getFirstChild()
getFirstChild in interface org.w3c.dom.NodegetFirstChild in class NodeImplNode.getFirstChild()public org.w3c.dom.Node getLastChild()
getLastChild in interface org.w3c.dom.NodegetLastChild in class NodeImplNode.getLastChild()public java.lang.String getTagName()
getTagName in interface org.w3c.dom.ElementElement.getTagName()public boolean hasAttribute(java.lang.String name)
hasAttribute in interface org.w3c.dom.ElementElement.hasAttribute(java.lang.String)
public boolean hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
hasAttributeNS in interface org.w3c.dom.ElementElement.hasAttributeNS(java.lang.String, java.lang.String)public boolean hasAttributes()
hasAttributes in interface org.w3c.dom.NodehasAttributes in class NodeImplNode.hasAttributes()public boolean hasChildNodes()
hasChildNodes in interface org.w3c.dom.NodehasChildNodes in class NodeImplNode.hasChildNodes()public java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class NodeImplNode.getNodeValue()
public void removeAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
removeAttribute in interface org.w3c.dom.Elementorg.w3c.dom.DOMExceptionElement.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.Elementorg.w3c.dom.DOMExceptionElement.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.Elementorg.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.Elementorg.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.Elementorg.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.Elementorg.w3c.dom.DOMExceptionpublic org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
setAttributeNodeNS in interface org.w3c.dom.Elementpublic void setChildCount(int count)
NodeImpl
setChildCount in class NodeImplcount - The new childCount valuepublic void setNamespaceMappings(java.util.Map<java.lang.String,java.lang.String> map)
public java.util.Map<java.lang.String,java.lang.String> getNamespaceMap()
getNamespaceMap in interface ElementAtExistpublic java.util.Iterator<java.lang.String> getPrefixes()
public java.lang.String getNamespaceForPrefix(java.lang.String prefix)
public int getPrefixCount()
public java.lang.String toString()
toString in class StoredNodeObject.toString()public java.lang.String toString(boolean top)
toString in class StoredNode
public java.lang.String toString(boolean top,
java.util.TreeSet<java.lang.String> 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.NodeinsertBefore in class NodeImplorg.w3c.dom.DOMExceptionNode.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 NodeImplorg.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 NodeImplorg.w3c.dom.DOMException
public void update(Txn transaction,
org.w3c.dom.NodeList newContent)
throws org.w3c.dom.DOMException
newContent -
org.w3c.dom.DOMException
public StoredNode updateChild(Txn transaction,
org.w3c.dom.Node oldChild,
org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
updateChild in class NodeImploldChild - 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 NodeImplorg.w3c.dom.DOMExceptionNode.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 NodeImpltransaction - newChild - oldChild -
Node.replaceChild(Node, Node) specification)
org.w3c.dom.DOMExceptionNode.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)public void setPreserveSpace(boolean preserveWS)
public boolean preserveSpace()
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface org.w3c.dom.Element
public void setIdAttribute(java.lang.String name,
boolean isId)
throws org.w3c.dom.DOMException
setIdAttribute in interface org.w3c.dom.Elementorg.w3c.dom.DOMException
public void setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
throws org.w3c.dom.DOMException
setIdAttributeNS in interface org.w3c.dom.Elementorg.w3c.dom.DOMException
public void setIdAttributeNode(org.w3c.dom.Attr idAttr,
boolean isId)
throws org.w3c.dom.DOMException
setIdAttributeNode in interface org.w3c.dom.Elementorg.w3c.dom.DOMExceptionpublic java.lang.String getBaseURI()
NodeImpl
getBaseURI in interface org.w3c.dom.NodegetBaseURI in class NodeImplprotected XmldbURI calculateBaseURI()
calculateBaseURI in class NodeImpl
public short compareDocumentPosition(org.w3c.dom.Node other)
throws org.w3c.dom.DOMException
compareDocumentPosition in interface org.w3c.dom.NodecompareDocumentPosition in class NodeImplorg.w3c.dom.DOMException
public java.lang.String getTextContent()
throws org.w3c.dom.DOMException
getTextContent in interface org.w3c.dom.NodegetTextContent in class NodeImplorg.w3c.dom.DOMException
public void setTextContent(java.lang.String textContent)
throws org.w3c.dom.DOMException
setTextContent in interface org.w3c.dom.NodesetTextContent in class NodeImplorg.w3c.dom.DOMExceptionpublic boolean isSameNode(org.w3c.dom.Node other)
isSameNode in interface org.w3c.dom.NodeisSameNode in class NodeImplpublic java.lang.String lookupPrefix(java.lang.String namespaceURI)
lookupPrefix in interface org.w3c.dom.NodelookupPrefix in class NodeImplpublic boolean isDefaultNamespace(java.lang.String namespaceURI)
isDefaultNamespace in interface org.w3c.dom.NodeisDefaultNamespace in class NodeImplpublic java.lang.String lookupNamespaceURI(java.lang.String prefix)
lookupNamespaceURI in interface org.w3c.dom.NodelookupNamespaceURI in class NodeImplpublic boolean isEqualNode(org.w3c.dom.Node arg)
isEqualNode in interface org.w3c.dom.NodeisEqualNode in class NodeImpl
public java.lang.Object getFeature(java.lang.String feature,
java.lang.String version)
getFeature in interface org.w3c.dom.NodegetFeature in class NodeImpl
public java.lang.Object setUserData(java.lang.String key,
java.lang.Object data,
org.w3c.dom.UserDataHandler handler)
setUserData in interface org.w3c.dom.NodesetUserData in class NodeImplpublic java.lang.Object getUserData(java.lang.String key)
getUserData in interface org.w3c.dom.NodegetUserData in class NodeImpl
public boolean accept(java.util.Iterator<StoredNode> iterator,
NodeVisitor visitor)
Visitable
accept in interface Visitableaccept in class StoredNodeiterator - 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 | |||||||||