|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.memtree.NodeImpl
org.exist.memtree.ElementImpl
public class ElementImpl
Field Summary |
---|
Fields inherited from class org.exist.memtree.NodeImpl |
---|
NAMESPACE_NODE, REFERENCE_NODE |
Fields inherited from interface org.exist.xquery.value.NodeValue |
---|
IN_MEMORY_NODE, PERSISTENT_NODE |
Fields inherited from interface org.exist.xquery.value.Sequence |
---|
EMPTY_SEQUENCE |
Constructor Summary | |
---|---|
ElementImpl(DocumentImpl doc,
int nodeNumber)
|
Method Summary | |
---|---|
boolean |
declaresNamespacePrefixes()
The method declaresNamespacePrefixes |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
|
String |
getAttributeNS(String namespaceURI,
String localName)
|
NamedNodeMap |
getAttributes()
|
int |
getAttributesCount()
|
String |
getBaseURI()
? @see org.w3c.dom.Node#getBaseURI() |
int |
getChildCount()
|
NodeList |
getChildNodes()
|
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String namespaceURI,
String name)
|
Node |
getFirstChild()
|
int |
getItemType()
Return the primary type to which all items in this sequence belong. |
String |
getLocalName()
|
String |
getNamespaceForPrefix(String name)
The method getNamespaceForPrefix |
Map |
getNamespaceMap()
The method getNamespaceMap |
String |
getNamespaceURI()
|
String |
getPrefix()
|
Set |
getPrefixes()
The method getPrefixes |
QName |
getQName()
|
TypeInfo |
getSchemaTypeInfo()
? @see org.w3c.dom.Element#getSchemaTypeInfo() |
String |
getTagName()
|
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String namespaceURI,
String localName)
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
void |
removeAttribute(String arg0)
|
Attr |
removeAttributeNode(Attr arg0)
|
void |
removeAttributeNS(String arg0,
String arg1)
|
void |
selectAttributes(NodeTest test,
Sequence result)
|
void |
selectChildren(NodeTest test,
Sequence result)
|
void |
selectDescendantAttributes(NodeTest test,
Sequence result)
|
void |
selectDescendants(boolean includeSelf,
NodeTest test,
Sequence result)
|
void |
setAttribute(String arg0,
String arg1)
|
Attr |
setAttributeNode(Attr arg0)
|
Attr |
setAttributeNodeNS(Attr arg0)
|
void |
setAttributeNS(String arg0,
String arg1,
String arg2)
|
void |
setIdAttribute(String name,
boolean isId)
? @see org.w3c.dom.Element#setIdAttribute(java.lang.String, boolean) |
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
? @see org.w3c.dom.Element#setIdAttributeNode(org.w3c.dom.Attr, boolean) |
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
? @see org.w3c.dom.Element#setIdAttributeNS(java.lang.String, java.lang.String, boolean) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getFeature, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Constructor Detail |
---|
public ElementImpl(DocumentImpl doc, int nodeNumber)
Method Detail |
---|
public String getTagName()
getTagName
in interface Element
public QName getQName()
getQName
in interface QNameable
getQName
in class NodeImpl
public boolean hasChildNodes()
hasChildNodes
in interface Node
hasChildNodes
in class NodeImpl
public Node getFirstChild()
getFirstChild
in interface Node
getFirstChild
in class NodeImpl
public NodeList getChildNodes()
getChildNodes
in interface Node
getChildNodes
in class NodeImpl
public int getChildCount()
public String getNamespaceURI()
getNamespaceURI
in interface Node
getNamespaceURI
in class NodeImpl
public String getPrefix()
getPrefix
in interface Node
getPrefix
in class NodeImpl
public String getLocalName()
getLocalName
in interface Node
getLocalName
in class NodeImpl
public boolean hasAttributes()
hasAttributes
in interface Node
hasAttributes
in class NodeImpl
public String getAttribute(String name)
getAttribute
in interface Element
public void setAttribute(String arg0, String arg1) throws DOMException
setAttribute
in interface Element
DOMException
public void removeAttribute(String arg0) throws DOMException
removeAttribute
in interface Element
DOMException
public int getAttributesCount()
public NamedNodeMap getAttributes()
getAttributes
in interface Node
getAttributes
in class NodeImpl
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public Attr setAttributeNode(Attr arg0) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr removeAttributeNode(Attr arg0) throws DOMException
removeAttributeNode
in interface Element
DOMException
public void selectAttributes(NodeTest test, Sequence result) throws XPathException
selectAttributes
in class NodeImpl
XPathException
public void selectDescendantAttributes(NodeTest test, Sequence result) throws XPathException
selectDescendantAttributes
in class NodeImpl
XPathException
public void selectChildren(NodeTest test, Sequence result) throws XPathException
selectChildren
in class NodeImpl
XPathException
public void selectDescendants(boolean includeSelf, NodeTest test, Sequence result) throws XPathException
selectDescendants
in class NodeImpl
XPathException
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
public void setAttributeNS(String arg0, String arg1, String arg2) throws DOMException
setAttributeNS
in interface Element
DOMException
public void removeAttributeNS(String arg0, String arg1) throws DOMException
removeAttributeNS
in interface Element
DOMException
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
public Attr setAttributeNodeNS(Attr arg0) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String name)
getElementsByTagNameNS
in interface Element
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS
in interface Element
public String getNamespaceForPrefix(String name)
getNamespaceForPrefix
name
- a String
value
String
valuepublic Set getPrefixes()
getPrefixes
Set
valuepublic boolean declaresNamespacePrefixes()
declaresNamespacePrefixes
boolean
valuepublic Map getNamespaceMap()
getNamespaceMap
Map
valuepublic int getItemType()
Sequence
Type.NODE
for node sets, Type.ITEM
for other sequences with mixed items.
getItemType
in interface Sequence
getItemType
in class NodeImpl
public String getBaseURI()
getBaseURI
in interface Node
getBaseURI
in class NodeImpl
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |