Package org.apache.velocity.tools.config
Class CompoundConfiguration<C extends Configuration>
- java.lang.Object
-
- org.apache.velocity.tools.config.Configuration
-
- org.apache.velocity.tools.config.CompoundConfiguration<C>
-
- All Implemented Interfaces:
java.lang.Comparable<Configuration>
- Direct Known Subclasses:
FactoryConfiguration
,ToolboxConfiguration
public class CompoundConfiguration<C extends Configuration> extends Configuration
- Version:
- $Id: Configuration.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
-
Constructor Summary
Constructors Constructor Description CompoundConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addChild(C newKid)
void
addConfiguration(CompoundConfiguration<C> config)
protected void
appendChildren(java.lang.StringBuilder out, java.lang.String childrenName, java.lang.String childDelim)
boolean
equals(java.lang.Object obj)
protected C
getChild(C kid)
protected java.util.Collection<C>
getChildren()
protected boolean
hasChildren()
int
hashCode()
protected boolean
removeChild(C config)
protected void
setChildren(java.util.Collection<C> kids)
void
validate()
-
Methods inherited from class org.apache.velocity.tools.config.Configuration
addConfiguration, addProperty, appendProperties, compareTo, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
-
-
-
-
Field Detail
-
children
private final java.util.SortedSet<C extends Configuration> children
-
-
Method Detail
-
addChild
protected void addChild(C newKid)
-
removeChild
protected boolean removeChild(C config)
-
hasChildren
protected boolean hasChildren()
-
getChildren
protected java.util.Collection<C> getChildren()
-
setChildren
protected void setChildren(java.util.Collection<C> kids)
-
addConfiguration
public void addConfiguration(CompoundConfiguration<C> config)
-
validate
public void validate()
- Overrides:
validate
in classConfiguration
-
appendChildren
protected void appendChildren(java.lang.StringBuilder out, java.lang.String childrenName, java.lang.String childDelim)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classConfiguration
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classConfiguration
-
-