public interface BroadleafModelModifierProcessor extends BroadleafProcessor
A tag processor that changes the tag to the tagName specified in the BroadleafTemplateModelModifierDTO, adds attributes to that tag, adds local variables to that tag, and adds a
BroadleafTemplateModel as the last child of the tag.
This processor is similar to the BroadleafTagReplacementProcessor in that it modifies the DOM model. This processor is different in that
it is designed to keep the majority of the originally-written model intact and instead augment it with additional elements, tags, etc.
AbstractBroadleafModelModifierProcessorDEFAULT_PRECEDENCE, DEFAULT_PREFIX| Modifier and Type | Method and Description |
|---|---|
BroadleafTemplateModelModifierDTO |
getInjectedModelAndTagAttributes(String rootTagName,
Map<String,String> rootTagAttributes,
BroadleafTemplateContext context) |
boolean |
reprocessModel() |
boolean |
useSingleQuotes() |
getName, getPrecedence, getPrefixboolean useSingleQuotes()
boolean reprocessModel()
BroadleafTemplateModelModifierDTO getInjectedModelAndTagAttributes(String rootTagName, Map<String,String> rootTagAttributes, BroadleafTemplateContext context)
rootTagName - The name of the tag the event was triggered onrootTagAttributes - A map of String to String of all of the attributes on the tagcontext - The BroadleafTemplateContext that should be used to perform operations on the tag withBroadleafTemplateModelModifierDTO that has the parameters that should be added to the tag, the model variables
that should be added to the local model and the BroadleafTemplateModel that should be added as the last child of the tagCopyright © 2020. All rights reserved.