Interface BroadleafTagTextModifierProcessor
- All Superinterfaces:
BroadleafProcessor
- All Known Implementing Classes:
AbstractBroadleafTagTextModifierProcessor
An attribute processor that is used to modify (and replace) the text contents of the tag it's used on
- Author:
- Jay Aisenbrey (cja769)
-
Field Summary
Fields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Method Summary
Modifier and TypeMethodDescriptiongetTagText(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
-
textShouldBeProcessed
boolean textShouldBeProcessed()- Returns:
- true if the text needs to be processed by the templating framework else false
-
getTagText
String getTagText(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, BroadleafTemplateContext context) - Parameters:
tagName- The name of the tag that the attribute 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:
- The text that should be inserted into the tag
-