T
- the generic type, e.g. TreeNode or DocumentNodepublic class NodeMapper<T> extends Object
TreeNode
,
DocumentNode
,
TextNode
Constructor and Description |
---|
NodeMapper()
Instantiate a new mapper.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getIds()
Gets the known identifiers.
|
T |
getNode(String id)
Gets a node that is stored for a certain identifier.
|
void |
putNode(String id,
T node)
Inserts a new node.
|
void |
rmNode(String id)
Removes a node.
|
String |
toString() |
public void putNode(String id, T node)
id
- the identifiernode
- the nodepublic void rmNode(String id)
id
- the identifierpublic T getNode(String id)
id
- the identifierCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.