Interface BroadleafAttributeModifierProcessor
- All Superinterfaces:
BroadleafProcessor
- All Known Implementing Classes:
AbstractBroadleafAttributeModifierProcessor
An attribute processor that modifies the attributes on the tag that the event was triggered on
- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
Fields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Method Summary
Modifier and TypeMethodDescriptiongetModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, BroadleafTemplateContext context) booleanMethods inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
getName, getPrecedence, getPrefix
-
Method Details
-
getModifiedAttributes
BroadleafAttributeModifier getModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, BroadleafTemplateContext context) - Parameters:
tagName- The name of the tag the event was triggered ontagAttributes- A map of String to String of all of the attributes on the tagattributeName- The name of the attribute that triggered the eventattributeValue- The value of the attribute that triggered the eventcontext- TheBroadleafTemplateContextthat should be used to perform operations on the tag with- Returns:
- A
BroadleafAttributeModifierthat has a map of the new attributes that should be added to the tag and a list of attribute names that should be removed from the tag
-
useSingleQuotes
boolean useSingleQuotes()- Returns:
- true if the new attribute's values should be surrounded by single quotes and false if they should be surrounded by double quotes
-