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>
decisions
protected java.lang.String
key
protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description DmnDecisionRequirementsGraphImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDecision(DmnDecision decision)
DmnDecision
getDecision(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.String
getKey()
The unique identifier of the diagram if exists.java.lang.String
getName()
The human readable name of the diagram if exists.void
setDecisions(java.util.Map<java.lang.String,DmnDecision> decisions)
void
setKey(java.lang.String key)
void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
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:DmnDecisionRequirementsGraph
The unique identifier of the diagram if exists.- Specified by:
getKey
in 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:DmnDecisionRequirementsGraph
The human readable name of the diagram if exists.- Specified by:
getName
in 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:DmnDecisionRequirementsGraph
Gets the containing decisions.- Specified by:
getDecisions
in 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:DmnDecisionRequirementsGraph
Gets the containing decision with the given key.- Specified by:
getDecision
in 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:DmnDecisionRequirementsGraph
Get the keys of the containing decisions.- Specified by:
getDecisionKeys
in interfaceDmnDecisionRequirementsGraph
- Returns:
- the decision keys.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-