wt.inf.container
Class ContainerSpecHelper.QueryConfig
java.lang.Object
wt.inf.container.ContainerSpecHelper.QueryConfig
- Enclosing class:
- ContainerSpecHelper
- static final class ContainerSpecHelper.QueryConfig
- extends Object
Builds and caches the possible descendants of a given container class
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paths
private final Map paths
max
private int max
ContainerSpecHelper.QueryConfig
ContainerSpecHelper.QueryConfig()
throws WTException
reload
void reload()
getPaths
Class[][] getPaths(Class search_class)
throws WTException
- Get the possible descendent containers of the given container class.
The result is the set of "paths" through the container class hierarchy
that are possible starting from the given search class.
- Parameters:
search_class
-
- Returns:
- Class[][]
- Throws:
WTException
recurse
private void recurse(ArrayList path,
int level,
List buffer)
getMaxLevels
int getMaxLevels()
setMaxLevels
void setMaxLevels(int new_max)
throws WTPropertyVetoException
- Throws:
WTPropertyVetoException
getChildren
Class[] getChildren(Class search_class,
int level)
setChildren
void setChildren(Class container_class,
Class[] children)
throws WTPropertyVetoException
- Throws:
WTPropertyVetoException
getTopLevel
int getTopLevel(Class search_class)
throws WTException
- Throws:
WTException
getTopLevel
private int getTopLevel(Class search_class,
Class current_class,
int current_level)
throws WTException
- Throws:
WTException