java.io.Serializable, INestableNode, INodepublic class Document
extends Object
implements java.io.Serializable
Root object for a DOM object tree produced by the DOMBuilderMarkupHandler
handler or the IDOMMarkupParser parser implementations.
| Constructor | Description |
|---|---|
Document(String documentName) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChild(INode newChild) |
|
void |
clearChildren() |
|
Document |
cloneNode(INestableNode parent) |
|
java.util.List<INode> |
getChildren() |
|
<T extends INode> |
getChildrenOfType(Class<T> type) |
|
Integer |
getCol() |
|
String |
getDocumentName() |
|
INode |
getFirstChild() |
|
<T extends INode> |
getFirstChildOfType(Class<T> type) |
|
Integer |
getLine() |
|
INestableNode |
getParent() |
|
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 |
numChildren() |
|
void |
removeChild(INode child) |
|
void |
setCol(Integer col) |
|
void |
setDocumentName(String documentName) |
|
void |
setLine(Integer line) |
|
void |
setParent(INestableNode parent) |
public String getDocumentName()
public void setDocumentName(String documentName)
public Document cloneNode(INestableNode parent)
public boolean hasChildren()
hasChildren in interface INestableNodepublic int numChildren()
numChildren in interface INestableNodepublic java.util.List<INode> getChildren()
getChildren in interface INestableNodepublic <T extends INode> java.util.List<T> getChildrenOfType(Class<T> type)
getChildrenOfType in interface INestableNodepublic INode getFirstChild()
getFirstChild in interface INestableNodepublic <T extends INode> T getFirstChildOfType(Class<T> type)
getFirstChildOfType in interface INestableNodepublic void addChild(INode newChild)
addChild in interface INestableNodepublic final void insertChild(int index,
INode newChild)
insertChild in interface INestableNodepublic final void insertChildBefore(INode before, INode newChild)
insertChildBefore in interface INestableNodepublic final void insertChildAfter(INode after, INode newChild)
insertChildAfter in interface INestableNodepublic final void removeChild(INode child)
removeChild in interface INestableNodepublic final void clearChildren()
clearChildren in interface INestableNodepublic INestableNode getParent()
public void setParent(INestableNode parent)
Copyright © 2018 The ATTOPARSER team. All rights reserved.