@Portable public class CardinalityRuleImpl extends Object implements CardinalityRule
CardinalityRule.ConnectorRule| Constructor and Description |
|---|
CardinalityRuleImpl(String name,
Role role,
long minOccurrences,
long maxOccurrences,
Set<CardinalityRule.ConnectorRule> incomingConnectionRules,
Set<CardinalityRule.ConnectorRule> outgoingConnectionRules) |
| Modifier and Type | Method and Description |
|---|---|
Set<CardinalityRule.ConnectorRule> |
getIncomingConnectionRules()
Restrictions on the incoming connections to an Element
|
long |
getMaxOccurrences()
The maximum number of occurrences that an Element can have in a diagram.
|
long |
getMinOccurrences()
The minimum number of occurrences that an Element can have in a diagram.
|
String |
getName() |
Set<CardinalityRule.ConnectorRule> |
getOutgoingConnectionRules()
Restrictions on the outgoing connections from an Element
|
Role |
getRole()
The Role for which the Rule applies.
|
public CardinalityRuleImpl(String name, Role role, long minOccurrences, long maxOccurrences, Set<CardinalityRule.ConnectorRule> incomingConnectionRules, Set<CardinalityRule.ConnectorRule> outgoingConnectionRules)
public Role getRole()
RuleByRolegetRole in interface RuleByRolepublic long getMinOccurrences()
CardinalityRulegetMinOccurrences in interface CardinalityRulepublic long getMaxOccurrences()
CardinalityRulegetMaxOccurrences in interface CardinalityRulepublic Set<CardinalityRule.ConnectorRule> getIncomingConnectionRules()
CardinalityRulegetIncomingConnectionRules in interface CardinalityRulepublic Set<CardinalityRule.ConnectorRule> getOutgoingConnectionRules()
CardinalityRulegetOutgoingConnectionRules in interface CardinalityRuleCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.