Class ParserData
java.lang.Object
com.vaadin.flow.component.template.internal.ParserData
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachInjectedField
(InjectableFieldConsumer consumer) Applies the given consumer to each mapped field.getAttributes
(String id) Gets template element data (attribute values).
-
Constructor Details
-
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 idstags
- a map of ids to their tagsattributes
- a map of attributes values to the element id
-
-
Method Details
-
forEachInjectedField
Applies the given consumer to each mapped field.- Parameters:
consumer
- the consumer to call for each mapped field
-
getAttributes
Gets template element data (attribute values).- Parameters:
id
- the id of the element- Returns:
- template data
-