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 TypeMethodDescriptionvoidaddAttribute(String attributeName, String attributeValue) voidaddAttributes(Map<String, String> newAttributes) voidcloneNode(INestableNode parent) booleanelementNameMatches(String name) getAttributeValue(String attributeName) booleanhasAttribute(String attributeName) booleanintvoidremoveAttribute(String attributeName) voidsetElementName(String name) Methods inherited from class org.attoparser.dom.AbstractNestableNode
addChild, clearChildren, getChildren, getChildrenOfType, getFirstChild, getFirstChildOfType, hasChildren, insertChild, insertChildAfter, insertChildBefore, numChildren, removeChildMethods 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
-