wt.inf.container
Class ContainerSpecHelper.QueryConfig

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


Field Summary
private  int max
           
private  Map paths
           
 
Constructor Summary
(package private) ContainerSpecHelper.QueryConfig()
           
 
Method Summary
(package private)  Class[] getChildren(Class search_class, int level)
           
(package private)  int getMaxLevels()
           
(package private)  Class[][] getPaths(Class search_class)
          Get the possible descendent containers of the given container class.
(package private)  int getTopLevel(Class search_class)
           
private  int getTopLevel(Class search_class, Class current_class, int current_level)
           
private  void recurse(ArrayList path, int level, List buffer)
           
(package private)  void reload()
           
(package private)  void setChildren(Class container_class, Class[] children)
           
(package private)  void setMaxLevels(int new_max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paths

private final Map paths

max

private int max
Constructor Detail

ContainerSpecHelper.QueryConfig

ContainerSpecHelper.QueryConfig()
                          throws WTException
Method Detail

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