@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()
RuleByRole
getRole
in interface RuleByRole
public long getMinOccurrences()
CardinalityRule
getMinOccurrences
in interface CardinalityRule
public long getMaxOccurrences()
CardinalityRule
getMaxOccurrences
in interface CardinalityRule
public Set<CardinalityRule.ConnectorRule> getIncomingConnectionRules()
CardinalityRule
getIncomingConnectionRules
in interface CardinalityRule
public Set<CardinalityRule.ConnectorRule> getOutgoingConnectionRules()
CardinalityRule
getOutgoingConnectionRules
in interface CardinalityRule
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.