Class Element
java.lang.Object
com.japisoft.editix.editor.jsx.domapi.Node
com.japisoft.editix.editor.jsx.domapi.Element
public class Element extends Node
Element is the most general base class from which all element objects (i.e. objects that represent elements) in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
-
Field Summary
Fields Modifier and Type Field Description NamedNodeMap
attributes
int
childElementCount
Element[]
children
Element
firstElementChild
Element
lastElementChild
Fields inherited from class com.japisoft.editix.editor.jsx.domapi.Node
baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nodeName, nodeType, nodeValue, parentNode, tagName, textContent
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
after(java.lang.Object... nodes)
void
append(java.lang.Object... nodes)
void
before(java.lang.Object... nodes)
java.lang.Object
evaluate(java.lang.String xpathExpression)
java.lang.Object
evaluate(java.lang.String xpathExpression, short type)
java.lang.String
getAttribute(java.lang.String attributeName)
Attr
getAttributeNode(java.lang.String name)
Attr
getAttributeNodeNS(java.lang.String namespace, java.lang.String name)
java.lang.String
getAttributeNS(java.lang.String namespace, java.lang.String name)
java.lang.String[]
getAttributesNames()
Element[]
getElementsByTagName(java.lang.String tagName)
Element[]
getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String tagName)
boolean
hasAttribute(java.lang.String name)
boolean
hasAttributes()
void
setAttribute(java.lang.String name, java.lang.String value)
Methods inherited from class com.japisoft.editix.editor.jsx.domapi.Node
appendChild, cloneNode, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild
-
Field Details
-
children
-
childElementCount
public int childElementCount -
attributes
-
firstElementChild
-
lastElementChild
-
-
Constructor Details
-
Method Details
-
after
public void after(java.lang.Object... nodes) -
append
public void append(java.lang.Object... nodes) -
before
public void before(java.lang.Object... nodes) -
getAttribute
public java.lang.String getAttribute(java.lang.String attributeName) -
getAttributeNS
public java.lang.String getAttributeNS(java.lang.String namespace, java.lang.String name) -
hasAttribute
public boolean hasAttribute(java.lang.String name) -
getAttributesNames
public java.lang.String[] getAttributesNames() -
getAttributeNode
-
hasAttributes
public boolean hasAttributes() -
getAttributeNodeNS
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.String value) -
getElementsByTagNameNS
-
getElementsByTagName
-
evaluate
public java.lang.Object evaluate(java.lang.String xpathExpression, short type) -
evaluate
public java.lang.Object evaluate(java.lang.String xpathExpression)
-