public class ToolboxConfiguration extends CompoundConfiguration<ToolConfiguration>
This class handles configuration info for the Toolbox instances
that will eventually be produced by ToolboxFactory
.
It contains ToolConfiguration
s for tools which will be managed
by those toolboxes, as well the toolboxes' scope and
any other Property
s 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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
scope |
Constructor and Description |
---|
ToolboxConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addTool(ToolConfiguration tool) |
int |
compareTo(Configuration conf) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getScope() |
ToolConfiguration |
getTool(java.lang.String key) |
java.util.Collection<ToolConfiguration> |
getTools() |
int |
hashCode() |
void |
removeTool(ToolConfiguration tool) |
void |
setScope(java.lang.String scope) |
void |
setTools(java.util.Collection<ToolConfiguration> tools) |
java.lang.String |
toString() |
void |
validate() |
addChild, addConfiguration, appendChildren, getChild, getChildren, hasChildren, removeChild, setChildren
addConfiguration, addProperty, appendProperties, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
public void setScope(java.lang.String scope)
public java.lang.String getScope()
public void addTool(ToolConfiguration tool)
public void removeTool(ToolConfiguration tool)
public ToolConfiguration getTool(java.lang.String key)
public java.util.Collection<ToolConfiguration> getTools()
public void setTools(java.util.Collection<ToolConfiguration> tools)
public void validate()
validate
in class CompoundConfiguration<ToolConfiguration>
public int compareTo(Configuration conf)
compareTo
in interface java.lang.Comparable<Configuration>
compareTo
in class Configuration
public int hashCode()
hashCode
in class CompoundConfiguration<ToolConfiguration>
public boolean equals(java.lang.Object obj)
equals
in class CompoundConfiguration<ToolConfiguration>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2003-2007 Apache Software Foundation