Interface BroadleafAttributeModifierProcessor

All Superinterfaces:
BroadleafProcessor
All Known Implementing Classes:
AbstractBroadleafAttributeModifierProcessor

public interface BroadleafAttributeModifierProcessor extends BroadleafProcessor
An attribute processor that modifies the attributes on the tag that the event was triggered on
Author:
Jay Aisenbrey (cja769)
  • 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 on
      tagAttributes - A map of String to String of all of the attributes on the tag
      attributeName - The name of the attribute that triggered the event
      attributeValue - The value of the attribute that triggered the event
      context - The BroadleafTemplateContext that should be used to perform operations on the tag with
      Returns:
      A BroadleafAttributeModifier that 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