|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.studio.confluence.importexport.AbstractPrimitivePropertyImportPreProcessor
public abstract class AbstractPrimitivePropertyImportPreProcessor
An abstract pre-processor for handling PrimitiveProperty property objects. Sub-classes do the actual processing of ImportedObjects.
Constructor Summary | |
---|---|
AbstractPrimitivePropertyImportPreProcessor()
|
Method Summary | |
---|---|
protected abstract java.util.List<java.lang.String> |
getPropertyNames()
Provides a list of names of properties that the pre-processor is targeting for processing. |
abstract boolean |
handles(ImportedObject importedObject)
|
ImportedObject |
process(ImportedObject object)
Takes an ImportedObject and returns a new, processed ImportedObject, or null if the ImportedObject should be skipped. |
protected java.util.Map<java.lang.String,PrimitiveProperty> |
propertiesMatchingNames(java.util.List<ImportedProperty> properties,
java.util.List<java.lang.String> propertyNames)
Finds the properties, if any, that need to be processed according to a list of names passed in. |
protected abstract PrimitiveProperty |
updateProperty(PrimitiveProperty primitiveProperty)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPrimitivePropertyImportPreProcessor()
Method Detail |
---|
protected java.util.Map<java.lang.String,PrimitiveProperty> propertiesMatchingNames(java.util.List<ImportedProperty> properties, java.util.List<java.lang.String> propertyNames)
propertyNames
- The list of names of properties that should be processed
public ImportedObject process(ImportedObject object)
ImportedObjectPreProcessor
ImportedObjectPreProcessor.handles(ImportedObject)
returns true
process
in interface ImportedObjectPreProcessor
object
- The object that needs to be processed
protected abstract java.util.List<java.lang.String> getPropertyNames()
protected abstract PrimitiveProperty updateProperty(PrimitiveProperty primitiveProperty)
public abstract boolean handles(ImportedObject importedObject)
handles
in interface ImportedObjectPreProcessor
importedObject
- The object to be processed
true
if this preprocessor should be applied to the object, otherwise false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |