public class AttributeAddingProcessor extends Object implements ItemProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Map<String,String>> |
attributeMappings |
| Constructor and Description |
|---|
AttributeAddingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(Map.Entry<String,String> attribute,
org.dom4j.Element element) |
Item |
process(Context context,
CachingOptions cachingOptions,
Item item)
Processes an
Item. |
void |
setAttributeMappings(Map<String,Map<String,String>> attributeMappings) |
public void setAttributeMappings(Map<String,Map<String,String>> attributeMappings)
public Item process(Context context, CachingOptions cachingOptions, Item item) throws ItemProcessingException
ItemProcessorItem.process in interface ItemProcessorcontext - the current contextcachingOptions - caching options in case you need access to itemsitem - the item to processItemProcessingException - if an error occurred while processing the itemCopyright © 2018 CrafterCMS. All rights reserved.