org.sf.codejen
Class TemplateConfiguration

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Template>
              extended by org.sf.codejen.TemplateConfiguration
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Template>, Collection<Template>, List<Template>, RandomAccess

public class TemplateConfiguration
extends ArrayList<Template>

The codegen config in object.

Author:
Shane Ng
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
TemplateConfiguration(MultiVariableExpander varExpander)
           
 
Method Summary
 boolean addAll(Collection<? extends Template> c)
          Adds the parsed templates to existing config.
 void addProperty(String key, String value)
          Adds a property to the config.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

TemplateConfiguration

public TemplateConfiguration(MultiVariableExpander varExpander)
Method Detail

addProperty

public void addProperty(String key,
                        String value)
Adds a property to the config.

Parameters:
key - the key of the property.
value - the value of the property.

addAll

public boolean addAll(Collection<? extends Template> c)
Adds the parsed templates to existing config.

Specified by:
addAll in interface Collection<Template>
Specified by:
addAll in interface List<Template>
Overrides:
addAll in class ArrayList<Template>
Parameters:
c - a collection of templates
Returns:
true if the templates are added into the config. false, otherwise.