Class DefaultElementTransformHandlerRegistry
java.lang.Object
org.camunda.bpm.dmn.engine.impl.transform.DefaultElementTransformHandlerRegistry
- All Implemented Interfaces:
DmnElementTransformHandlerRegistry
public class DefaultElementTransformHandlerRegistry
extends Object
implements DmnElementTransformHandlerRegistry
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<Class<? extends DmnModelElementInstance>,
DmnElementTransformHandler> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<Source extends DmnModelElementInstance,
Target>
voidaddHandler
(Class<Source> sourceClass, DmnElementTransformHandler<Source, Target> handler) Register aDmnElementTransformHandler
for a source typeprotected static Map<Class<? extends DmnModelElementInstance>,
DmnElementTransformHandler> <Source extends DmnModelElementInstance,
Target>
DmnElementTransformHandler<Source,Target> getHandler
(Class<Source> sourceClass) Get the transformer for a source type
-
Field Details
-
handlers
-
-
Constructor Details
-
DefaultElementTransformHandlerRegistry
public DefaultElementTransformHandlerRegistry()
-
-
Method Details
-
getDefaultElementTransformHandlers
protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> getDefaultElementTransformHandlers() -
addHandler
public <Source extends DmnModelElementInstance,Target> void addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source, Target> handler) Description copied from interface:DmnElementTransformHandlerRegistry
Register aDmnElementTransformHandler
for a source type- Specified by:
addHandler
in interfaceDmnElementTransformHandlerRegistry
- 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
-
getHandler
public <Source extends DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass) Description copied from interface:DmnElementTransformHandlerRegistry
Get the transformer for a source type- Specified by:
getHandler
in interfaceDmnElementTransformHandlerRegistry
- 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
-