com.vaadin.flow.component.polymertemplate.

Class TemplateParser.TemplateData

  • java.lang.Object
    • com.vaadin.flow.component.polymertemplate.TemplateParser.TemplateData
  • Enclosing interface:

    TemplateParser


    public static class TemplateParser.TemplateData
    extends Object

    Wrapper for the parsing result.

    The data contains HtmlImport uri where the template is declared and its content as an Element instance.

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Constructor Detail

      • TemplateData

        public TemplateData(String uri,
                            org.jsoup.nodes.Element element)
    • Method Detail

      • getHtmlImportUri

        public String getHtmlImportUri()

        Gets the HtmlImport uri where the template is declared.

        Returns:

        template uri

      • getTemplateElement

        public org.jsoup.nodes.Element getTemplateElement()

        Gets the content of the template.

        Returns:

        the content of the template