Class Element
java.lang.Object
org.attoparser.dom.Element
- All Implemented Interfaces:
Serializable, INestableNode, INode
Element node in a DOM tree.
- Since:
- 2.0.0
- Author:
- Daniel Fernández
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String attributeName, String attributeValue) voidaddAttributes(Map<String, String> newAttributes) voidvoidfinal voidcloneNode(INestableNode parent) booleanelementNameMatches(String name) getAttributeValue(String attributeName) getChildrenOfType(Class<T> type) getCol()<T extends INode>
TgetFirstChildOfType(Class<T> type) getLine()booleanhasAttribute(String attributeName) booleanbooleanbooleanhasCol()booleanhasLine()booleanfinal voidinsertChild(int index, INode newChild) final voidinsertChildAfter(INode after, INode newChild) final voidinsertChildBefore(INode before, INode newChild) intintvoidremoveAttribute(String attributeName) final voidremoveChild(INode child) voidvoidsetElementName(String name) voidvoidsetParent(INestableNode parent)
-
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
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin interfaceINestableNode
-
numChildren
public int numChildren()- Specified by:
numChildrenin interfaceINestableNode
-
getChildren
- Specified by:
getChildrenin interfaceINestableNode
-
getChildrenOfType
- Specified by:
getChildrenOfTypein interfaceINestableNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceINestableNode
-
getFirstChildOfType
- Specified by:
getFirstChildOfTypein interfaceINestableNode
-
addChild
- Specified by:
addChildin interfaceINestableNode
-
insertChild
- Specified by:
insertChildin interfaceINestableNode
-
insertChildBefore
- Specified by:
insertChildBeforein interfaceINestableNode
-
insertChildAfter
- Specified by:
insertChildAfterin interfaceINestableNode
-
removeChild
- Specified by:
removeChildin interfaceINestableNode
-
clearChildren
public final void clearChildren()- Specified by:
clearChildrenin interfaceINestableNode
-
hasLine
-
getLine
-
setLine
-
hasCol
-
getCol
-
setCol
-
hasParent
-
getParent
-
setParent
-