org.apache.velocity.tools.config
Class Configuration<T>

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

public class Configuration<T>
extends java.lang.Object

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

Field Summary
private  java.util.List<Property> convertableProperties
           
private  java.util.Map<java.lang.String,java.lang.Object> simpleProperties
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 void addConfiguration(Configuration<T> config)
           
 void addProperty(Property property)
           
protected  void appendProperties(java.lang.StringBuilder out)
           
 java.util.List<Property> getConvertableProperties()
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 java.util.Map<java.lang.String,java.lang.Object> getSimpleProperties()
           
 boolean hasProperties()
           
 boolean removeProperty(Property property)
           
 java.lang.Object removeProperty(java.lang.String name)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simpleProperties

private java.util.Map<java.lang.String,java.lang.Object> simpleProperties

convertableProperties

private java.util.List<Property> convertableProperties
Constructor Detail

Configuration

public Configuration()
Method Detail

addProperty

public void addProperty(Property property)

removeProperty

public boolean removeProperty(Property property)

getConvertableProperties

public java.util.List<Property> getConvertableProperties()

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)

removeProperty

public java.lang.Object removeProperty(java.lang.String name)

hasProperties

public boolean hasProperties()

getSimpleProperties

public java.util.Map<java.lang.String,java.lang.Object> getSimpleProperties()

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()

addConfiguration

public void addConfiguration(Configuration<T> config)

validate

public void validate()

appendProperties

protected void appendProperties(java.lang.StringBuilder out)


Copyright (c) 2003-2007 Apache Software Foundation