public abstract class AbstractPrimitivePropertyImportPreProcessor extends Object implements ImportedObjectPreProcessor
| Constructor and Description |
|---|
AbstractPrimitivePropertyImportPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<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 Map<String,PrimitiveProperty> |
propertiesMatchingNames(List<ImportedProperty> properties,
List<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) |
public AbstractPrimitivePropertyImportPreProcessor()
protected Map<String,PrimitiveProperty> propertiesMatchingNames(List<ImportedProperty> properties, List<String> propertyNames)
propertyNames - The list of names of properties that should be processedpublic ImportedObject process(ImportedObject object)
ImportedObjectPreProcessorImportedObjectPreProcessor.handles(ImportedObject) returns trueprocess in interface ImportedObjectPreProcessorobject - The object that needs to be processedprotected abstract List<String> getPropertyNames()
protected abstract PrimitiveProperty updateProperty(PrimitiveProperty primitiveProperty)
public abstract boolean handles(ImportedObject importedObject)
handles in interface ImportedObjectPreProcessorimportedObject - The object to be processedtrue if this preprocessor should be applied to the object, otherwise false.Copyright © 2003–2015 Atlassian. All rights reserved.