Class Configuration
java.lang.Object
org.apache.velocity.tools.config.Configuration
- All Implemented Interfaces:
Comparable<Configuration>
- Direct Known Subclasses:
CompoundConfiguration, ToolConfiguration
This base configuration class manages a set of Propertys
for whatever thing the instance of this class represents. When
combined with another Configuration instance via
addConfiguration(Configuration), the Propertys of both instances are
combined.
NOTE: Though this class appears Comparable,
the compareTo(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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguration(Configuration config) voidaddProperty(Property property) protected voidintcompareTo(Configuration config) booleangetProperty(String name) inthashCode()booleanbooleanremoveProperty(String name) booleanremoveProperty(Property property) voidsetProperties(Collection<Property> props) voidsetProperty(String name, Object value) voidsetPropertyMap(Map<String, Object> props) voidvalidate()
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
addProperty
-
removeProperty
-
setProperty
-
removeProperty
-
hasProperties
public boolean hasProperties() -
getProperty
-
getProperties
-
getPropertyMap
-
setPropertyMap
-
setProperties
-
addConfiguration
-
validate
public void validate() -
compareTo
- Specified by:
compareToin interfaceComparable<Configuration>
-
hashCode
-
equals
-
appendProperties
-