Package org.attoparser.dom
Class Element
java.lang.Object
org.attoparser.dom.AbstractNode
org.attoparser.dom.AbstractNestableNode
org.attoparser.dom.Element
- All Implemented Interfaces:
Serializable
,INestableNode
,INode
Element node in a DOM tree.
- Since:
- 2.0.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String attributeName, String attributeValue) void
addAttributes
(Map<String, String> newAttributes) void
cloneNode
(INestableNode parent) boolean
elementNameMatches
(String name) getAttributeValue
(String attributeName) boolean
hasAttribute
(String attributeName) boolean
int
void
removeAttribute
(String attributeName) void
setElementName
(String name) Methods inherited from class org.attoparser.dom.AbstractNestableNode
addChild, clearChildren, getChildren, getChildrenOfType, getFirstChild, getFirstChildOfType, hasChildren, insertChild, insertChildAfter, insertChildBefore, numChildren, removeChild
Methods inherited from class org.attoparser.dom.AbstractNode
getCol, getLine, getParent, hasCol, hasLine, hasParent, setCol, setLine, setParent
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
elementName
-
attributes
-
attributesLen
private int attributesLen
-
-
Constructor Details
-
Element
-
-
Method Details
-
getElementName
-
setElementName
-
elementNameMatches
-
numAttributes
public int numAttributes() -
hasAttributes
public boolean hasAttributes() -
hasAttribute
-
getAttributeValue
-
getAttributeMap
-
addAttribute
-
addAttributes
-
removeAttribute
-
clearAttributes
public void clearAttributes() -
cloneNode
-