public class ElementNode extends ContainerNode
| Constructor and Description |
|---|
ElementNode(String name) |
ElementNode(String name,
AttributePair[] attr,
DuelNode... children) |
ElementNode(String name,
int index,
int line,
int column) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(AttributePair attr) |
boolean |
canHaveChildren() |
void |
clearAttributes() |
boolean |
equals(Object arg) |
DuelNode |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
String |
getTagName() |
boolean |
hasAttributes() |
int |
hashCode() |
boolean |
isAncestor(String tag) |
boolean |
isAncestorOrSelf(String tag) |
boolean |
isBoolAttribute(String name) |
boolean |
isLinkAttribute(String name) |
boolean |
isSelf(String tag) |
protected String |
mapAttrName(String name)
Maps the human-entered attribute to output command
|
DuelNode |
removeAttribute(String name) |
void |
setAttribute(String name,
DuelNode value) |
appendChild, childCount, getChildren, getFirstChild, getLastChild, hasChildren, removeChild, replaceChild, toStringpublic ElementNode(String name, int index, int line, int column)
public ElementNode(String name)
public ElementNode(String name, AttributePair[] attr, DuelNode... children)
public String getTagName()
public boolean canHaveChildren()
public boolean isLinkAttribute(String name)
public boolean isBoolAttribute(String name)
public boolean hasAttributes()
public void addAttribute(AttributePair attr) throws NullPointerException
NullPointerExceptionpublic void clearAttributes()
public boolean isSelf(String tag)
public boolean isAncestor(String tag)
public boolean isAncestorOrSelf(String tag)
protected String mapAttrName(String name)
name - public boolean equals(Object arg)
equals in class ContainerNodepublic int hashCode()
hashCode in class ContainerNodeCopyright © 2014. All rights reserved.