We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.template.internal.
Class ParserData
- java.lang.Object
-
- com.vaadin.flow.component.template.internal.ParserData
-
Direct Known Subclasses:
public class ParserData extends Object
Immutable parser data which may be stored in cache.
Since:
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor and Description ParserData(Map<Field,String> fields, Map<String,String> tags, Map<String,Map<String,String>> attributes)
Constructs an immutable data object with the given information.
-
Method Summary
All Methods Modifier and Type Method and Description void
forEachInjectedField(InjectableFieldConsumer consumer)
Applies the given consumer to each mapped field.
Map<String,String>
getAttributes(String id)
Gets template element data (attribute values).
-
-
-
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 idstags
- a map of ids to their tagsattributes
- 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
-
-