Class CompoundConfiguration<C extends Configuration>

java.lang.Object
org.apache.velocity.tools.config.Configuration
org.apache.velocity.tools.config.CompoundConfiguration<C>
All Implemented Interfaces:
Comparable<Configuration>
Direct Known Subclasses:
FactoryConfiguration, ToolboxConfiguration

public class CompoundConfiguration<C extends Configuration> extends Configuration
This class manages a SortedSet of child Configurations as well as being a Configuration itself.
Version:
$Id: Configuration.java 511959 2007-02-26 19:24:39Z nbubna $
Author:
Nathan Bubna
  • Field Details

  • Constructor Details

    • CompoundConfiguration

      public CompoundConfiguration()
  • Method Details

    • addChild

      protected void addChild(C newKid)
    • removeChild

      protected boolean removeChild(C config)
    • hasChildren

      protected boolean hasChildren()
    • getChildren

      protected Collection<C> getChildren()
    • setChildren

      protected void setChildren(Collection<C> kids)
    • getChild

      protected C getChild(C kid)
    • addConfiguration

      public void addConfiguration(CompoundConfiguration<C> config)
    • validate

      public void validate()
      Overrides:
      validate in class Configuration
    • appendChildren

      protected void appendChildren(StringBuilder out, String childrenName, String childDelim)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Configuration
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Configuration