com.atlassian.confluence.importexport
Class ChainedImportedObjectPreProcessor
java.lang.Object
com.atlassian.confluence.importexport.ChainedImportedObjectPreProcessor
- All Implemented Interfaces:
- ImportedObjectPreProcessor
public class ChainedImportedObjectPreProcessor
- extends Object
- implements ImportedObjectPreProcessor
A container that runs an ImportedObject through multiple ImportedObjectPreProcessors in sequence.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedImportedObjectPreProcessor
public ChainedImportedObjectPreProcessor(List<ImportedObjectPreProcessor> processorList)
emptyList
public static ChainedImportedObjectPreProcessor emptyList()
handles
public boolean handles(ImportedObject object)
- Specified by:
handles
in interface ImportedObjectPreProcessor
- Parameters:
object
- The object to be processed
- Returns:
true
if any of the contained preprocessors should be applied to the object, otherwise false
.
process
public ImportedObject process(ImportedObject object)
- Process the object with each of the contained preprocessors
- Specified by:
process
in interface ImportedObjectPreProcessor
- Parameters:
object
- The object that needs to be processed
- Returns:
- A new processed object, or null if any of the preprocessors returned null