org.sf.codejen
Class TemplateConfiguration
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Template>
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
| 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 |
TemplateConfiguration
public TemplateConfiguration(MultiVariableExpander varExpander)
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.