|
|||||||
| 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 Elementpublic QName getQName()
getQName in interface QNameablegetQName in class NodeImplpublic boolean hasChildNodes()
hasChildNodes in interface NodehasChildNodes in class NodeImplpublic Node getFirstChild()
getFirstChild in interface NodegetFirstChild in class NodeImplpublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class NodeImplpublic int getChildCount()
public String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class NodeImplpublic String getPrefix()
getPrefix in interface NodegetPrefix in class NodeImplpublic String getLocalName()
getLocalName in interface NodegetLocalName in class NodeImplpublic boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class NodeImplpublic String getAttribute(String name)
getAttribute in interface Element
public void setAttribute(String arg0,
String arg1)
throws DOMException
setAttribute in interface ElementDOMException
public void removeAttribute(String arg0)
throws DOMException
removeAttribute in interface ElementDOMExceptionpublic int getAttributesCount()
public NamedNodeMap getAttributes()
getAttributes in interface NodegetAttributes in class NodeImplpublic Attr getAttributeNode(String name)
getAttributeNode in interface Element
public Attr setAttributeNode(Attr arg0)
throws DOMException
setAttributeNode in interface ElementDOMException
public Attr removeAttributeNode(Attr arg0)
throws DOMException
removeAttributeNode in interface ElementDOMException
public void selectAttributes(NodeTest test,
Sequence result)
throws XPathException
selectAttributes in class NodeImplXPathException
public void selectDescendantAttributes(NodeTest test,
Sequence result)
throws XPathException
selectDescendantAttributes in class NodeImplXPathException
public void selectChildren(NodeTest test,
Sequence result)
throws XPathException
selectChildren in class NodeImplXPathException
public void selectDescendants(boolean includeSelf,
NodeTest test,
Sequence result)
throws XPathException
selectDescendants in class NodeImplXPathExceptionpublic 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 ElementDOMException
public void removeAttributeNS(String arg0,
String arg1)
throws DOMException
removeAttributeNS in interface ElementDOMException
public Attr getAttributeNodeNS(String namespaceURI,
String localName)
getAttributeNodeNS in interface Element
public Attr setAttributeNodeNS(Attr arg0)
throws DOMException
setAttributeNodeNS in interface ElementDOMException
public NodeList getElementsByTagNameNS(String namespaceURI,
String name)
getElementsByTagNameNS in interface Elementpublic boolean hasAttribute(String name)
hasAttribute in interface Element
public boolean hasAttributeNS(String namespaceURI,
String localName)
hasAttributeNS in interface Elementpublic 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()
SequenceType.NODE for node sets, Type.ITEM
for other sequences with mixed items.
getItemType in interface SequencegetItemType in class NodeImplpublic String getBaseURI()
getBaseURI in interface NodegetBaseURI in class NodeImplpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Element
public void setIdAttribute(String name,
boolean isId)
throws DOMException
setIdAttribute in interface ElementDOMException
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
setIdAttributeNS in interface ElementDOMException
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||