com.docmosis.template.analysis.list
Class ListTree
java.lang.Object
com.docmosis.template.analysis.list.ListTree
- All Implemented Interfaces:
- Serializable
public class ListTree
- extends Object
- implements Serializable
This class provides a tree structure suitable for dealing with ODT document
list elements and their relationships.
- See Also:
- Serialized Form
Method Summary |
void |
addChild(String id,
String parentId)
|
String |
find(String startingId,
Set acceptableIds)
Starting from the given startingId, look for a parentId in the given
set of acceptable ids. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListTree
public ListTree()
addChild
public void addChild(String id,
String parentId)
find
public String find(String startingId,
Set acceptableIds)
- Starting from the given startingId, look for a parentId in the given
set of acceptable ids. This method will effectively find the first
"parent id" that is in the acceptable set for the given starting id.
- Parameters:
startingId
- the id from which to start the searchacceptableIds
- the acceptable ids
- Returns:
- null if none found
Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.