Docmosis API 4.8.0

com.docmosis.template.analysis.list
Class ListTree

java.lang.Object
  extended by 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

Constructor Summary
ListTree()
           
 
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
 

Constructor Detail

ListTree

public ListTree()
Method Detail

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 search
acceptableIds - the acceptable ids
Returns:
null if none found

Docmosis API 4.8.0

Copyright © 2014–2024 Docmosis Pty Ltd. All rights reserved.