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
Fields Modifier and Type Field Description protected static Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler>handlers
-
Constructor Summary
Constructors Constructor Description DefaultElementTransformHandlerRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <Source extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance,Target>
voidaddHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)Register aDmnElementTransformHandlerfor a source typeprotected static Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler>getDefaultElementTransformHandlers()<Source extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance,Target>
DmnElementTransformHandler<Source,Target>getHandler(Class<Source> sourceClass)Get the transformer for a source type
-
-
-
Field Detail
-
handlers
protected static final Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler> handlers
-
-
Method Detail
-
getDefaultElementTransformHandlers
protected static Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler> getDefaultElementTransformHandlers()
-
addHandler
public <Source extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance,Target> void addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
Description copied from interface:DmnElementTransformHandlerRegistryRegister aDmnElementTransformHandlerfor a source type- Specified by:
addHandlerin 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 org.camunda.bpm.model.dmn.instance.DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass)
Description copied from interface:DmnElementTransformHandlerRegistryGet the transformer for a source type- Specified by:
getHandlerin 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
DmnElementTransformHandleror null if none is registered for this source type
-
-