org.camunda.bpm.dmn.engine.impl.transform
Class DefaultElementTransformHandlerRegistry

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.transform.DefaultElementTransformHandlerRegistry
All Implemented Interfaces:
DmnElementTransformHandlerRegistry

public class DefaultElementTransformHandlerRegistry
extends Object
implements DmnElementTransformHandlerRegistry


Field Summary
protected static Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler> handlers
           
 
Constructor Summary
DefaultElementTransformHandlerRegistry()
           
 
Method Summary
<Source extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance,Target>
void
addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
          Register a DmnElementTransformHandler for a source type
protected 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handlers

protected static final Map<Class<? extends org.camunda.bpm.model.dmn.instance.DmnModelElementInstance>,DmnElementTransformHandler> handlers
Constructor Detail

DefaultElementTransformHandlerRegistry

public DefaultElementTransformHandlerRegistry()
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: DmnElementTransformHandlerRegistry
Register a DmnElementTransformHandler for a source type

Specified by:
addHandler in interface DmnElementTransformHandlerRegistry
Type Parameters:
Source - the type of the transformation input
Target - the type of the transformation output
Parameters:
sourceClass - the class of the source type
handler - 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: DmnElementTransformHandlerRegistry
Get the transformer for a source type

Specified by:
getHandler in interface DmnElementTransformHandlerRegistry
Type Parameters:
Source - the type of the transformation input
Target - 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


Copyright © 2017 camunda services GmbH. All rights reserved.