Class CardinalityRuleImpl
- java.lang.Object
-
- org.uberfire.ext.wires.bpmn.api.model.impl.rules.CardinalityRuleImpl
-
- All Implemented Interfaces:
CardinalityRule,Rule,RuleByRole
@Portable public class CardinalityRuleImpl extends Object implements CardinalityRule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.uberfire.ext.wires.bpmn.api.model.rules.CardinalityRule
CardinalityRule.ConnectorRule
-
-
Constructor Summary
Constructors Constructor Description CardinalityRuleImpl(String name, Role role, long minOccurrences, long maxOccurrences, Set<CardinalityRule.ConnectorRule> incomingConnectionRules, Set<CardinalityRule.ConnectorRule> outgoingConnectionRules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CardinalityRule.ConnectorRule>getIncomingConnectionRules()Restrictions on the incoming connections to an ElementlonggetMaxOccurrences()The maximum number of occurrences that an Element can have in a diagram.longgetMinOccurrences()The minimum number of occurrences that an Element can have in a diagram.StringgetName()Set<CardinalityRule.ConnectorRule>getOutgoingConnectionRules()Restrictions on the outgoing connections from an ElementRolegetRole()The Role for which the Rule applies.
-
-
-
Constructor Detail
-
CardinalityRuleImpl
public CardinalityRuleImpl(String name, Role role, long minOccurrences, long maxOccurrences, Set<CardinalityRule.ConnectorRule> incomingConnectionRules, Set<CardinalityRule.ConnectorRule> outgoingConnectionRules)
-
-
Method Detail
-
getRole
public Role getRole()
Description copied from interface:RuleByRoleThe Role for which the Rule applies. All Elements with this Role will be affected by the Rule.- Specified by:
getRolein interfaceRuleByRole- Returns:
-
getMinOccurrences
public long getMinOccurrences()
Description copied from interface:CardinalityRuleThe minimum number of occurrences that an Element can have in a diagram.- Specified by:
getMinOccurrencesin interfaceCardinalityRule- Returns:
-
getMaxOccurrences
public long getMaxOccurrences()
Description copied from interface:CardinalityRuleThe maximum number of occurrences that an Element can have in a diagram.- Specified by:
getMaxOccurrencesin interfaceCardinalityRule- Returns:
-
getIncomingConnectionRules
public Set<CardinalityRule.ConnectorRule> getIncomingConnectionRules()
Description copied from interface:CardinalityRuleRestrictions on the incoming connections to an Element- Specified by:
getIncomingConnectionRulesin interfaceCardinalityRule- Returns:
-
getOutgoingConnectionRules
public Set<CardinalityRule.ConnectorRule> getOutgoingConnectionRules()
Description copied from interface:CardinalityRuleRestrictions on the outgoing connections from an Element- Specified by:
getOutgoingConnectionRulesin interfaceCardinalityRule- Returns:
-
-