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