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 Deprecated Methods Modifier and Type Method Description protected CaddChild(C newKid)protected voidaddChildren(java.util.Collection<C> kids)voidaddConfiguration(CompoundConfiguration<C> config)protected voidappendChildren(java.lang.StringBuilder out, java.lang.String childrenName, java.lang.String childDelim)booleanequals(java.lang.Object obj)protected CgetChild(C kid)protected java.util.Collection<C>getChildren()protected booleanhasChildren()inthashCode()protected booleanremoveChild(C config)protected voidsetChildren(java.util.Collection<C> kids)Deprecated.use addChildren(collection)voidvalidate()-
Methods inherited from class org.apache.velocity.tools.config.Configuration
addConfiguration, addProperty, appendProperties, compareTo, getProperties, getProperty, getPropertyMap, hasProperties, removeProperty, removeProperty, setProperties, setProperty, setPropertyMap
-
-
-
-
Method Detail
-
removeChild
protected boolean removeChild(C config)
-
hasChildren
protected boolean hasChildren()
-
getChildren
protected java.util.Collection<C> getChildren()
-
setChildren
@Deprecated protected void setChildren(java.util.Collection<C> kids)
Deprecated.use addChildren(collection)
-
addChildren
protected void addChildren(java.util.Collection<C> kids)
- Since:
- 3.2
-
addConfiguration
public void addConfiguration(CompoundConfiguration<C> config)
-
validate
public void validate()
- Overrides:
validatein classConfiguration
-
appendChildren
protected void appendChildren(java.lang.StringBuilder out, java.lang.String childrenName, java.lang.String childDelim)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConfiguration
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classConfiguration
-
-