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
This base configuration class manages a set of Property
s
for whatever thing the instance of this class represents. When
combined with another Configuration
instance via
addConfiguration(org.apache.velocity.tools.config.Configuration)
, the Property
s of both instances are
combined.
NOTE: Though this class appears Comparable
,
the compareTo(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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguration
(Configuration config) void
addProperty
(Property property) protected void
int
compareTo
(Configuration config) boolean
getProperty
(String name) int
hashCode()
boolean
boolean
removeProperty
(String name) boolean
removeProperty
(Property property) void
setProperties
(Collection<Property> props) void
setProperty
(String name, Object value) void
setPropertyMap
(Map<String, Object> props) void
validate()
-
Field Details
-
properties
-
-
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:
compareTo
in interfaceComparable<Configuration>
-
hashCode
public int hashCode() -
equals
-
appendProperties
-