com.raritantechnologies.utils.tree
Class TreeFactory

java.lang.Object
  extended bycom.raritantechnologies.searchApp.ConfigurableObjectFactory
      extended bycom.raritantechnologies.utils.tree.TreeFactory
All Implemented Interfaces:
IConfigurable, IConfigurableFactory

public class TreeFactory
extends ConfigurableObjectFactory

Configurable factory class for Trees.

XML Configuration Template:
 <SystemObjects>
  <SystemObject type="TreeFactory" name="someTreeName" factoryClass="com.raritantechnologies.utils.tree.TreeFactory" >
    <TreeBuilder class="theTreeBuilderClass" >

    </TreeBuilder>
  </SystemObject>
 </SystemObjects>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
TreeFactory()
           
 
Method Summary
 IConfigurable getConfiguredObject()
          Returns an instantiated IConfigurable object or null if the configuration DOM Element has not been initialized.
 org.w3c.dom.Element getInitializer()
          Used by Configurable objects that need to have their own constructor.
 TreeRoot getTree()
           
 void setConfigElement(org.w3c.dom.Element elem)
          Caches the DOM Element needed to instantiate IConfigurable objects.
 
Methods inherited from class com.raritantechnologies.searchApp.ConfigurableObjectFactory
getConfigurableChild, getConfigurableChildren, getConfiguredObject, getConfiguredObject, getConfiguredObject, getConfiguredObjectNames, getInitializer, hasConfiguredObject, initialize, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFactory

public TreeFactory()
Method Detail

setConfigElement

public void setConfigElement(org.w3c.dom.Element elem)
Description copied from class: ConfigurableObjectFactory
Caches the DOM Element needed to instantiate IConfigurable objects.

Specified by:
setConfigElement in interface IConfigurableFactory
Overrides:
setConfigElement in class ConfigurableObjectFactory

getConfiguredObject

public IConfigurable getConfiguredObject()
Description copied from class: ConfigurableObjectFactory
Returns an instantiated IConfigurable object or null if the configuration DOM Element has not been initialized.

Specified by:
getConfiguredObject in interface IConfigurableFactory
Overrides:
getConfiguredObject in class ConfigurableObjectFactory

getInitializer

public org.w3c.dom.Element getInitializer()
Used by Configurable objects that need to have their own constructor.

Specified by:
getInitializer in interface IConfigurableFactory
Overrides:
getInitializer in class ConfigurableObjectFactory

getTree

public TreeRoot getTree()