Interface DmnElementTransformHandlerRegistry
- All Known Implementing Classes:
DefaultElementTransformHandlerRegistry
public interface DmnElementTransformHandlerRegistry
Registry of DMN model element transformers
-
Method Summary
Modifier and TypeMethodDescription<Source extends DmnModelElementInstance,Target>
voidaddHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source, Target> handler) Register aDmnElementTransformHandlerfor a source type<Source extends DmnModelElementInstance,Target>
DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass) Get the transformer for a source type
-
Method Details
-
getHandler
<Source extends DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass) Get the transformer for a source type- Type Parameters:
Source- the type of the transformation inputTarget- the type of the transformation output- Parameters:
sourceClass- the class of the source type- Returns:
- the
DmnElementTransformHandleror null if none is registered for this source type
-
addHandler
<Source extends DmnModelElementInstance,Target> void addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source, Target> handler) Register aDmnElementTransformHandlerfor a source type- Type Parameters:
Source- the type of the transformation inputTarget- the type of the transformation output- Parameters:
sourceClass- the class of the source typehandler- the handler to register
-