org.basex.api.dom
Class BXElem
java.lang.Object
org.basex.api.dom.BXNode
org.basex.api.dom.BXElem
- All Implemented Interfaces:
- Element, Node
public final class BXElem
- extends BXNode
- implements Element
DOM - Element implementation.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
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 |
BXElem(Nod n)
Constructor. |
Method Summary |
String |
getAttribute(String name)
|
Attr |
getAttributeNode(String name)
|
Attr |
getAttributeNodeNS(String uri,
String ln)
|
String |
getAttributeNS(String uri,
String ln)
|
NamedNodeMap |
getAttributes()
|
NodeList |
getElementsByTagName(String name)
|
NodeList |
getElementsByTagNameNS(String uri,
String ln)
|
String |
getLocalName()
|
String |
getNodeName()
|
TypeInfo |
getSchemaTypeInfo()
|
String |
getTagName()
|
boolean |
hasAttribute(String name)
|
boolean |
hasAttributeNS(String uri,
String ln)
|
void |
removeAttribute(String name)
|
Attr |
removeAttributeNode(Attr oldAttr)
|
void |
removeAttributeNS(String uri,
String ln)
|
void |
setAttribute(String name,
String value)
|
Attr |
setAttributeNode(Attr at)
|
Attr |
setAttributeNodeNS(Attr at)
|
void |
setAttributeNS(String uri,
String qn,
String value)
|
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr at,
boolean isId)
|
void |
setIdAttributeNS(String uri,
String ln,
boolean isId)
|
Methods inherited from class org.basex.api.dom.BXNode |
appendChild, cloneNode, compareDocumentPosition, error, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNod, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
BXElem
public BXElem(Nod n)
- Constructor.
- Parameters:
n
- node reference
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interface Node
- Overrides:
getNodeName
in class BXNode
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interface Node
- Overrides:
getLocalName
in class BXNode
getAttributes
public NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interface Node
- Overrides:
getAttributes
in class BXNode
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute
in interface Element
getAttributeNS
public String getAttributeNS(String uri,
String ln)
- Specified by:
getAttributeNS
in interface Element
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNode
in interface Element
getAttributeNodeNS
public Attr getAttributeNodeNS(String uri,
String ln)
- Specified by:
getAttributeNodeNS
in interface Element
getElementsByTagName
public NodeList getElementsByTagName(String name)
- Specified by:
getElementsByTagName
in interface Element
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String uri,
String ln)
- Specified by:
getElementsByTagNameNS
in interface Element
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interface Element
getTagName
public String getTagName()
- Specified by:
getTagName
in interface Element
hasAttribute
public boolean hasAttribute(String name)
- Specified by:
hasAttribute
in interface Element
hasAttributeNS
public boolean hasAttributeNS(String uri,
String ln)
- Specified by:
hasAttributeNS
in interface Element
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute
in interface Element
removeAttributeNS
public void removeAttributeNS(String uri,
String ln)
- Specified by:
removeAttributeNS
in interface Element
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr)
- Specified by:
removeAttributeNode
in interface Element
setAttribute
public void setAttribute(String name,
String value)
- Specified by:
setAttribute
in interface Element
setAttributeNS
public void setAttributeNS(String uri,
String qn,
String value)
- Specified by:
setAttributeNS
in interface Element
setAttributeNode
public Attr setAttributeNode(Attr at)
- Specified by:
setAttributeNode
in interface Element
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr at)
- Specified by:
setAttributeNodeNS
in interface Element
setIdAttribute
public void setIdAttribute(String name,
boolean isId)
- Specified by:
setIdAttribute
in interface Element
setIdAttributeNS
public void setIdAttributeNS(String uri,
String ln,
boolean isId)
- Specified by:
setIdAttributeNS
in interface Element
setIdAttributeNode
public void setIdAttributeNode(Attr at,
boolean isId)
- Specified by:
setIdAttributeNode
in interface Element