public interface TemplateFactory
| Modifier and Type | Method and Description |
|---|---|
void |
check(Script scr,
String tplName,
Element e,
Map<String,String> attrs)
Build an element.
|
Set<String> |
getAvailables()
Get the available templates.
|
boolean |
isAvailable(String id)
Test if a template is available.
|
Template |
register(Template tpl)
Register a template.
|
Set<String> getAvailables()
boolean isAvailable(String id)
id - the template identifiertrue iff the template is availablevoid check(Script scr, String tplName, Element e, Map<String,String> attrs) throws ElementBuilderException
scr - the script the element belongs to.tplName - the template name for the elemente - the element associated to the templateattrs - the attributes related to the element. @return the built element if succeedElementBuilderException - if an error occurredCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.