You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.template.internal.

Class ParserData

  • Direct Known Subclasses:

    TemplateDataAnalyzer.PolymerParserData

    public class ParserData
    extends Object

    Immutable parser data which may be stored in cache.

    For internal use only. May be renamed or removed in a future release.

    Since:

    Author:

    Vaadin Ltd

    • Constructor Detail

      • ParserData

        public ParserData​(Map<Field,​String> fields,
                          Map<String,​String> tags,
                          Map<String,​Map<String,​String>> attributes)

        Constructs an immutable data object with the given information.

        Parameters:

        fields - a map of fields to their ids

        tags - a map of ids to their tags

        attributes - a map of attributes values to the element id

    • Method Detail

      • forEachInjectedField

        public void forEachInjectedField​(InjectableFieldConsumer consumer)

        Applies the given consumer to each mapped field.

        Parameters:

        consumer - the consumer to call for each mapped field

      • getAttributes

        public Map<String,​String> getAttributes​(String id)

        Gets template element data (attribute values).

        Parameters:

        id - the id of the element

        Returns:

        template data