Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
-
- All Implemented Interfaces:
DmnDecision
- Direct Known Subclasses:
DecisionDefinitionEntity
public class DmnDecisionImpl extends java.lang.Object implements DmnDecision
-
-
Field Summary
Fields Modifier and Type Field Description protected DmnDecisionLogicdecisionLogicprotected java.lang.Stringkeyprotected java.lang.Stringnameprotected java.util.Collection<DmnDecision>requiredDecision
-
Constructor Summary
Constructors Constructor Description DmnDecisionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnDecisionLogicgetDecisionLogic()Returns the decision logic of the decision (e.g., a decision table).java.lang.StringgetKey()The unique identifier of the decision if exists.java.lang.StringgetName()The human readable name of the decision if exists.java.util.Collection<DmnDecision>getRequiredDecisions()Returns the required decisions of this decision.booleanisDecisionTable()Checks if the decision logic is implemented as Decision Table.voidsetDecisionLogic(DmnDecisionLogic decisionLogic)voidsetKey(java.lang.String key)voidsetName(java.lang.String name)voidsetRequiredDecision(java.util.List<DmnDecision> requiredDecision)java.lang.StringtoString()
-
-
-
Field Detail
-
key
protected java.lang.String key
-
name
protected java.lang.String name
-
decisionLogic
protected DmnDecisionLogic decisionLogic
-
requiredDecision
protected java.util.Collection<DmnDecision> requiredDecision
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Description copied from interface:DmnDecisionThe unique identifier of the decision if exists.- Specified by:
getKeyin interfaceDmnDecision- Returns:
- the identifier or null if not set
-
setKey
public void setKey(java.lang.String key)
-
getName
public java.lang.String getName()
Description copied from interface:DmnDecisionThe human readable name of the decision if exists.- Specified by:
getNamein interfaceDmnDecision- Returns:
- the name or null if not set
-
setName
public void setName(java.lang.String name)
-
setDecisionLogic
public void setDecisionLogic(DmnDecisionLogic decisionLogic)
-
getDecisionLogic
public DmnDecisionLogic getDecisionLogic()
Description copied from interface:DmnDecisionReturns the decision logic of the decision (e.g., a decision table).- Specified by:
getDecisionLogicin interfaceDmnDecision- Returns:
- the containing decision logic
-
setRequiredDecision
public void setRequiredDecision(java.util.List<DmnDecision> requiredDecision)
-
getRequiredDecisions
public java.util.Collection<DmnDecision> getRequiredDecisions()
Description copied from interface:DmnDecisionReturns the required decisions of this decision.- Specified by:
getRequiredDecisionsin interfaceDmnDecision- Returns:
- the required decisions or an empty collection if not exists.
-
isDecisionTable
public boolean isDecisionTable()
Description copied from interface:DmnDecisionChecks if the decision logic is implemented as Decision Table.- Specified by:
isDecisionTablein interfaceDmnDecision- Returns:
- true if the decision logic is implement as Decision Table, otherwise false
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-