Interface DmnElementTransformHandlerRegistry
-
- All Known Implementing Classes:
DefaultElementTransformHandlerRegistry
public interface DmnElementTransformHandlerRegistry
Registry of DMN model element transformers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Source extends DmnModelElementInstance,Target>
voidaddHandler(java.lang.Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
Register aDmnElementTransformHandler
for a source type<Source extends DmnModelElementInstance,Target>
DmnElementTransformHandler<Source,Target>getHandler(java.lang.Class<Source> sourceClass)
Get the transformer for a source type
-
-
-
Method Detail
-
getHandler
<Source extends DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(java.lang.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
DmnElementTransformHandler
or null if none is registered for this source type
-
addHandler
<Source extends DmnModelElementInstance,Target> void addHandler(java.lang.Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
Register aDmnElementTransformHandler
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 typehandler
- the handler to register
-
-