Package org.apache.velocity.tools.config
Class Configuration
- java.lang.Object
-
- org.apache.velocity.tools.config.Configuration
-
- All Implemented Interfaces:
Comparable<Configuration>
- Direct Known Subclasses:
CompoundConfiguration,ToolConfiguration
public class Configuration extends Object implements Comparable<Configuration>
This base configuration class manages a set of
Propertys for whatever thing the instance of this class represents. When combined with anotherConfigurationinstance viaaddConfiguration(org.apache.velocity.tools.config.Configuration), thePropertys of both instances are combined.NOTE: Though this class appears
Comparable, thecompareTo(org.apache.velocity.tools.config.Configuration)method is unsupported. Proper comparison is left up to subclasses.- Version:
- $Id: Configuration.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguration(Configuration config)voidaddProperty(Property property)protected voidappendProperties(StringBuilder out)intcompareTo(Configuration config)booleanequals(Object obj)SortedSet<Property>getProperties()PropertygetProperty(String name)Map<String,Object>getPropertyMap()inthashCode()booleanhasProperties()booleanremoveProperty(String name)booleanremoveProperty(Property property)voidsetProperties(Collection<Property> props)voidsetProperty(String name, Object value)voidsetPropertyMap(Map<String,Object> props)voidvalidate()
-
-
-
Method Detail
-
addProperty
public void addProperty(Property property)
-
removeProperty
public boolean removeProperty(Property property)
-
removeProperty
public boolean removeProperty(String name)
-
hasProperties
public boolean hasProperties()
-
setProperties
public void setProperties(Collection<Property> props)
-
addConfiguration
public void addConfiguration(Configuration config)
-
validate
public void validate()
-
compareTo
public int compareTo(Configuration config)
- Specified by:
compareToin interfaceComparable<Configuration>
-
appendProperties
protected void appendProperties(StringBuilder out)
-
-