org.mvel2.templates
Class SimpleTemplateRegistry

java.lang.Object
  extended by org.mvel2.templates.SimpleTemplateRegistry
All Implemented Interfaces:
TemplateRegistry

public class SimpleTemplateRegistry
extends Object
implements TemplateRegistry


Constructor Summary
SimpleTemplateRegistry()
           
 
Method Summary
 void addNamedTemplate(String name, CompiledTemplate template)
           
 boolean contains(String name)
           
 CompiledTemplate getNamedTemplate(String name)
           
 Set<String> getNames()
           
 Iterator iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTemplateRegistry

public SimpleTemplateRegistry()
Method Detail

addNamedTemplate

public void addNamedTemplate(String name,
                             CompiledTemplate template)
Specified by:
addNamedTemplate in interface TemplateRegistry

getNamedTemplate

public CompiledTemplate getNamedTemplate(String name)
Specified by:
getNamedTemplate in interface TemplateRegistry

iterator

public Iterator iterator()
Specified by:
iterator in interface TemplateRegistry

getNames

public Set<String> getNames()
Specified by:
getNames in interface TemplateRegistry

contains

public boolean contains(String name)
Specified by:
contains in interface TemplateRegistry


Copyright © 2011. All Rights Reserved.