public class AttributeAddingDocumentProcessor extends Object implements DocumentProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Map<String,String>> |
attributeMappings |
protected String |
attributeSeparator |
static String |
DEFAULT_ATTRIBUTE_VALUE_SEPARATOR |
| Constructor and Description |
|---|
AttributeAddingDocumentProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.dom4j.Document |
process(org.dom4j.Document document,
File file,
String rootFolder)
Processes the specified XML DOM.
|
void |
setAttributeMappings(Map<String,Map<String,String>> attributeMappings) |
void |
setAttributeSeparator(String attributeSeparator) |
public static final String DEFAULT_ATTRIBUTE_VALUE_SEPARATOR
protected String attributeSeparator
public void setAttributeMappings(Map<String,Map<String,String>> attributeMappings)
public void setAttributeSeparator(String attributeSeparator)
public org.dom4j.Document process(org.dom4j.Document document,
File file,
String rootFolder)
throws org.dom4j.DocumentException
DocumentProcessorprocess in interface DocumentProcessordocument - the DOMfile - the XML filerootFolder - the root folder where this file is locatedorg.dom4j.DocumentExceptionCopyright © 2016 CrafterCMS. All Rights Reserved.