public final class DefaultTemplateParser extends Object implements TemplateParser
The implementation scans all HTML imports annotations for the given template class and tries to find the one that contains template definition using the tag name.
The class is Singleton. Use getInstance()
to
get its instance.
TemplateParser
TemplateParser.TemplateData
Modifier and Type | Method and Description |
---|---|
static TemplateParser |
getInstance() |
TemplateParser.TemplateData |
getTemplateContent(Class<? extends PolymerTemplate<?>> clazz,
String tag,
VaadinService service)
Gets the template data which contains a JSOUP
Element
representing the template content and the template uri. |
public static TemplateParser getInstance()
public TemplateParser.TemplateData getTemplateContent(Class<? extends PolymerTemplate<?>> clazz, String tag, VaadinService service)
TemplateParser
Element
representing the template content and the template uri.getTemplateContent
in interface TemplateParser
clazz
- the template classtag
- the template tag nameservice
- the related Vaadin serviceCopyright © 2018. All rights reserved.