Package org.camunda.bpm.dmn.engine.impl
Class DmnDecisionRequirementsGraphImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
-
- All Implemented Interfaces:
DmnDecisionRequirementsGraph
- Direct Known Subclasses:
DecisionRequirementsDefinitionEntity
public class DmnDecisionRequirementsGraphImpl extends java.lang.Object implements DmnDecisionRequirementsGraph
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,DmnDecision>decisionsprotected java.lang.Stringkeyprotected java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description DmnDecisionRequirementsGraphImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDecision(DmnDecision decision)DmnDecisiongetDecision(java.lang.String key)Gets the containing decision with the given key.java.util.Set<java.lang.String>getDecisionKeys()Get the keys of the containing decisions.java.util.Collection<DmnDecision>getDecisions()Gets the containing decisions.java.lang.StringgetKey()The unique identifier of the diagram if exists.java.lang.StringgetName()The human readable name of the diagram if exists.voidsetDecisions(java.util.Map<java.lang.String,DmnDecision> decisions)voidsetKey(java.lang.String key)voidsetName(java.lang.String name)java.lang.StringtoString()
-
-
-
Field Detail
-
key
protected java.lang.String key
-
name
protected java.lang.String name
-
decisions
protected java.util.Map<java.lang.String,DmnDecision> decisions
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Description copied from interface:DmnDecisionRequirementsGraphThe unique identifier of the diagram if exists.- Specified by:
getKeyin interfaceDmnDecisionRequirementsGraph- 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:DmnDecisionRequirementsGraphThe human readable name of the diagram if exists.- Specified by:
getNamein interfaceDmnDecisionRequirementsGraph- Returns:
- the name or null if not set
-
setName
public void setName(java.lang.String name)
-
getDecisions
public java.util.Collection<DmnDecision> getDecisions()
Description copied from interface:DmnDecisionRequirementsGraphGets the containing decisions.- Specified by:
getDecisionsin interfaceDmnDecisionRequirementsGraph- Returns:
- the containing decisions
-
setDecisions
public void setDecisions(java.util.Map<java.lang.String,DmnDecision> decisions)
-
addDecision
public void addDecision(DmnDecision decision)
-
getDecision
public DmnDecision getDecision(java.lang.String key)
Description copied from interface:DmnDecisionRequirementsGraphGets the containing decision with the given key.- Specified by:
getDecisionin interfaceDmnDecisionRequirementsGraph- Parameters:
key- the identifier of the decision- Returns:
- the decision or null if not exists
-
getDecisionKeys
public java.util.Set<java.lang.String> getDecisionKeys()
Description copied from interface:DmnDecisionRequirementsGraphGet the keys of the containing decisions.- Specified by:
getDecisionKeysin interfaceDmnDecisionRequirementsGraph- Returns:
- the decision keys.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-