java.io.Serializable
, INestableNode
, INode
public class Element
extends Object
implements java.io.Serializable
Element node in a DOM tree.
Constructor | Description |
---|---|
Element(String name) |
Modifier and Type | Method | Description |
---|---|---|
void |
addAttribute(String attributeName,
String attributeValue) |
|
void |
addAttributes(java.util.Map<String,String> newAttributes) |
|
void |
addChild(INode newChild) |
|
void |
clearAttributes() |
|
void |
clearChildren() |
|
Element |
cloneNode(INestableNode parent) |
|
boolean |
elementNameMatches(String name) |
|
java.util.Map<String,String> |
getAttributeMap() |
|
String |
getAttributeValue(String attributeName) |
|
java.util.List<INode> |
getChildren() |
|
<T extends INode> |
getChildrenOfType(Class<T> type) |
|
Integer |
getCol() |
|
String |
getElementName() |
|
INode |
getFirstChild() |
|
<T extends INode> |
getFirstChildOfType(Class<T> type) |
|
Integer |
getLine() |
|
INestableNode |
getParent() |
|
boolean |
hasAttribute(String attributeName) |
|
boolean |
hasAttributes() |
|
boolean |
hasChildren() |
|
boolean |
hasCol() |
|
boolean |
hasLine() |
|
boolean |
hasParent() |
|
void |
insertChild(int index,
INode newChild) |
|
void |
insertChildAfter(INode after,
INode newChild) |
|
void |
insertChildBefore(INode before,
INode newChild) |
|
int |
numAttributes() |
|
int |
numChildren() |
|
void |
removeAttribute(String attributeName) |
|
void |
removeChild(INode child) |
|
void |
setCol(Integer col) |
|
void |
setElementName(String name) |
|
void |
setLine(Integer line) |
|
void |
setParent(INestableNode parent) |
public String getElementName()
public void setElementName(String name)
public boolean elementNameMatches(String name)
public int numAttributes()
public boolean hasAttributes()
public boolean hasAttribute(String attributeName)
public String getAttributeValue(String attributeName)
public java.util.Map<String,String> getAttributeMap()
public void addAttribute(String attributeName, String attributeValue)
public void addAttributes(java.util.Map<String,String> newAttributes)
public void removeAttribute(String attributeName)
public void clearAttributes()
public Element cloneNode(INestableNode parent)
public boolean hasChildren()
hasChildren
in interface INestableNode
public int numChildren()
numChildren
in interface INestableNode
public java.util.List<INode> getChildren()
getChildren
in interface INestableNode
public <T extends INode> java.util.List<T> getChildrenOfType(Class<T> type)
getChildrenOfType
in interface INestableNode
public INode getFirstChild()
getFirstChild
in interface INestableNode
public <T extends INode> T getFirstChildOfType(Class<T> type)
getFirstChildOfType
in interface INestableNode
public void addChild(INode newChild)
addChild
in interface INestableNode
public final void insertChild(int index, INode newChild)
insertChild
in interface INestableNode
public final void insertChildBefore(INode before, INode newChild)
insertChildBefore
in interface INestableNode
public final void insertChildAfter(INode after, INode newChild)
insertChildAfter
in interface INestableNode
public final void removeChild(INode child)
removeChild
in interface INestableNode
public final void clearChildren()
clearChildren
in interface INestableNode
public INestableNode getParent()
public void setParent(INestableNode parent)
Copyright © 2018 The ATTOPARSER team. All rights reserved.