com.vaadin.flow.component.polymertemplate.
Class DefaultTemplateParser
- java.lang.Object
-
- com.vaadin.flow.component.polymertemplate.DefaultTemplateParser
-
All Implemented Interfaces:
public final class DefaultTemplateParser extends Object implements TemplateParser
Default template parser implementation.
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.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.polymertemplate.TemplateParser
TemplateParser.TemplateData
-
-
Method Summary
All Methods 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.
-
-
-
Method Detail
-
getInstance
public static TemplateParser getInstance()
-
getTemplateContent
public TemplateParser.TemplateData getTemplateContent(Class<? extends PolymerTemplate<?>> clazz, String tag, VaadinService service)
Description copied from interface:
TemplateParser
Gets the template data which contains a JSOUP
Element
representing the template content and the template uri.Specified by:
getTemplateContent
in interfaceTemplateParser
Parameters:
clazz
- the template classtag
- the template tag nameservice
- the related Vaadin serviceReturns:
the template data
-
-