org.apache.velocity.tools.config
Class CompoundConfiguration<C extends Configuration>

java.lang.Object
  extended by org.apache.velocity.tools.config.Configuration<C>
      extended by org.apache.velocity.tools.config.CompoundConfiguration<C>
Direct Known Subclasses:
FactoryConfiguration, ToolboxConfiguration

public class CompoundConfiguration<C extends Configuration>
extends Configuration<C>

Version:
$Id: Configuration.java 511959 2007-02-26 19:24:39Z nbubna $
Author:
Nathan Bubna

Field Summary
private  java.util.List<C> children
           
 
Constructor Summary
CompoundConfiguration()
           
 
Method Summary
protected  void addChild(C config)
           
 void addConfiguration(CompoundConfiguration<C> config)
           
protected  void appendChildren(java.lang.StringBuilder out, java.lang.String childrenName, java.lang.String childDelim)
           
protected  C findMatchingChild(C child)
           
protected  java.util.List<C> getChildren()
           
protected  boolean hasChildren()
           
protected  boolean removeChild(C config)
           
 void validate()
           
 
Methods inherited from class org.apache.velocity.tools.config.Configuration
addConfiguration, addProperty, appendProperties, getConvertableProperties, getProperties, getSimpleProperties, hasProperties, removeProperty, removeProperty, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

private java.util.List<C extends Configuration> children
Constructor Detail

CompoundConfiguration

public CompoundConfiguration()
Method Detail

addChild

protected void addChild(C config)

removeChild

protected boolean removeChild(C config)

hasChildren

protected boolean hasChildren()

getChildren

protected java.util.List<C> getChildren()

findMatchingChild

protected C findMatchingChild(C child)

addConfiguration

public void addConfiguration(CompoundConfiguration<C> config)

validate

public void validate()
Overrides:
validate in class Configuration<C extends Configuration>

appendChildren

protected void appendChildren(java.lang.StringBuilder out,
                              java.lang.String childrenName,
                              java.lang.String childDelim)


Copyright (c) 2003-2007 Apache Software Foundation