Package step.core.objectenricher
Interface ObjectHook
-
public interface ObjectHook
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectEnricher
getObjectEnricher(step.core.AbstractContext context)
ObjectFilter
getObjectFilter(step.core.AbstractContext context)
boolean
isObjectAcceptableInContext(step.core.AbstractContext context, EnricheableObject object)
Check if the provided object is acceptable in the provided contextvoid
rebuildContext(step.core.AbstractContext context, EnricheableObject object)
Rebuilds anAbstractContext
based on an object that has been previously enriched with anObjectEnricher
provided by this class
-
-
-
Method Detail
-
getObjectFilter
ObjectFilter getObjectFilter(step.core.AbstractContext context)
-
getObjectEnricher
ObjectEnricher getObjectEnricher(step.core.AbstractContext context)
-
rebuildContext
void rebuildContext(step.core.AbstractContext context, EnricheableObject object) throws java.lang.Exception
Rebuilds anAbstractContext
based on an object that has been previously enriched with anObjectEnricher
provided by this class- Parameters:
context
- the context to be recreatedobject
- the object to base the context reconstruction on- Throws:
java.lang.Exception
-
isObjectAcceptableInContext
boolean isObjectAcceptableInContext(step.core.AbstractContext context, EnricheableObject object)
Check if the provided object is acceptable in the provided context- Parameters:
context
-object
-- Returns:
- true if the provided object belongs to the provided context or doesn't belong to any context
-
-