public class DefaultDmnTransform extends Object implements DmnTransform, DmnElementTransformContext
Modifier and Type | Field and Description |
---|---|
protected DmnDataTypeTransformerRegistry |
dataTypeTransformerRegistry |
protected DmnDecision |
decision |
protected DmnElementTransformHandlerRegistry |
handlerRegistry |
protected DmnHitPolicyHandlerRegistry |
hitPolicyHandlerRegistry |
protected DmnModelInstance |
modelInstance |
protected Object |
parent |
protected DmnTransformer |
transformer |
protected List<DmnTransformListener> |
transformListeners |
Constructor and Description |
---|
DefaultDmnTransform(DmnTransformer transformer) |
protected DmnTransformer transformer
protected List<DmnTransformListener> transformListeners
protected DmnElementTransformHandlerRegistry handlerRegistry
protected DmnModelInstance modelInstance
protected Object parent
protected DmnDecision decision
protected DmnDataTypeTransformerRegistry dataTypeTransformerRegistry
protected DmnHitPolicyHandlerRegistry hitPolicyHandlerRegistry
public DefaultDmnTransform(DmnTransformer transformer)
public void setModelInstance(File file)
DmnTransform
setModelInstance
in interface DmnTransform
file
- the file of the DMN model instancepublic DmnTransform modelInstance(File file)
DmnTransform
modelInstance
in interface DmnTransform
file
- the file of the DMN model instancepublic void setModelInstance(InputStream inputStream)
DmnTransform
setModelInstance
in interface DmnTransform
inputStream
- the input stream of the DMN model instancepublic DmnTransform modelInstance(InputStream inputStream)
DmnTransform
modelInstance
in interface DmnTransform
inputStream
- the input stream of the DMN model instancepublic void setModelInstance(DmnModelInstance modelInstance)
DmnTransform
setModelInstance
in interface DmnTransform
modelInstance
- the DMN model instancepublic DmnTransform modelInstance(DmnModelInstance modelInstance)
DmnTransform
modelInstance
in interface DmnTransform
modelInstance
- the DMN model instancepublic <T extends DmnDecision> List<T> transformDecisions()
transformDecisions
in interface DmnTransform
protected DmnDecision transformDecision(Decision decision)
protected DmnDecision transformDecisionTable(DecisionTable decisionTable)
protected DmnDecisionTableInputImpl transformDecisionTableInput(Input input)
protected DmnDecisionTableOutputImpl transformDecisionTableOutput(Output output)
protected DmnDecisionTableRuleImpl transformDecisionTableRule(Rule rule)
protected DmnExpressionImpl transformInputExpression(InputExpression inputExpression)
protected DmnExpressionImpl transformInputEntry(InputEntry inputEntry)
protected DmnExpressionImpl transformOutputEntry(OutputEntry outputEntry)
protected void notifyTransformListeners(Decision decision, DmnDecision dmnDecision)
protected void notifyTransformListeners(Input input, DmnDecisionTableInputImpl dmnInput)
protected void notifyTransformListeners(Output output, DmnDecisionTableOutputImpl dmnOutput)
protected void notifyTransformListeners(Rule rule, DmnDecisionTableRuleImpl dmnRule)
public DmnModelInstance getModelInstance()
getModelInstance
in interface DmnElementTransformContext
public Object getParent()
getParent
in interface DmnElementTransformContext
public DmnDecision getDecision()
getDecision
in interface DmnElementTransformContext
public DmnDataTypeTransformerRegistry getDataTypeTransformerRegistry()
getDataTypeTransformerRegistry
in interface DmnElementTransformContext
DmnDataTypeTransformerRegistry
to usepublic DmnHitPolicyHandlerRegistry getHitPolicyHandlerRegistry()
getHitPolicyHandlerRegistry
in interface DmnElementTransformContext
DmnHitPolicyHandlerRegistry
to useCopyright © 2018. All rights reserved.