org.apache.velocity.tools.config
Class ToolboxConfiguration
java.lang.Object
   org.apache.velocity.tools.config.Configuration
org.apache.velocity.tools.config.Configuration
       org.apache.velocity.tools.config.CompoundConfiguration<ToolConfiguration>
org.apache.velocity.tools.config.CompoundConfiguration<ToolConfiguration>
           org.apache.velocity.tools.config.ToolboxConfiguration
org.apache.velocity.tools.config.ToolboxConfiguration
- All Implemented Interfaces: 
- java.lang.Comparable<Configuration>
- public class ToolboxConfiguration 
- extends CompoundConfiguration<ToolConfiguration>
This class handles configuration info for the Toolbox instances
 that will eventually be produced by ToolboxFactory.
 It contains ToolConfigurations for tools which will be managed
 by those toolboxes, as well the toolboxes' scope and
 any other Propertys which you intend to be available
 to all the tools in the toolbox.
 
 Most users will not find themselves directly using the API of this class.
 
 NOTE: Two instances of this class are considered equal() if their scopes
 are equal. This is not the intuitive behavior at this level but is done
 to facilitate intuitive behavior in the higher APIs, which are much more
 likely to be used directly.
- Version:
- $Id: ToolboxConfiguration.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
| Field Summary | 
| private  java.lang.String | scope
 | 
 
 
 
 
| Methods inherited from class org.apache.velocity.tools.config.Configuration | 
| addConfiguration, addProperty, appendProperties, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap | 
 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
 
scope
private java.lang.String scope
ToolboxConfiguration
public ToolboxConfiguration()
setScope
public void setScope(java.lang.String scope)
- 
 
getScope
public java.lang.String getScope()
- 
 
addTool
public void addTool(ToolConfiguration tool)
- 
 
removeTool
public void removeTool(ToolConfiguration tool)
- 
 
getTool
public ToolConfiguration getTool(java.lang.String key)
- 
 
getTools
public java.util.Collection<ToolConfiguration> getTools()
- 
 
setTools
public void setTools(java.util.Collection<ToolConfiguration> tools)
- 
 
validate
public void validate()
- 
- Overrides:
- validatein class- CompoundConfiguration<ToolConfiguration>
 
- 
 
compareTo
public int compareTo(Configuration conf)
- 
- Specified by:
- compareToin interface- java.lang.Comparable<Configuration>
- Overrides:
- compareToin class- Configuration
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- CompoundConfiguration<ToolConfiguration>
 
- 
 
equals
public boolean equals(java.lang.Object obj)
- 
- Overrides:
- equalsin class- CompoundConfiguration<ToolConfiguration>
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
Copyright (c) 2003-2007 Apache Software Foundation