- All Implemented Interfaces:
Serializable,Comparable<IDiagramNode.Relationship>
- Enclosing interface:
- IDiagramNode
The nature of a relationship between two nodes.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates a relationship with exactly one occurrence.Indicates a relationship with one or more occurrences.Indicates a relationship with zero or more occurrences.Indicates a relationship with zero or one occurrences. -
Method Summary
Modifier and TypeMethodDescriptionstatic IDiagramNode.RelationshiptoRelationship(IGroupable groupable) Get the relationship based on the provided grouping information.static IDiagramNode.RelationshipReturns the enum constant of this type with the specified name.static IDiagramNode.Relationship[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ZERO_OR_ONE
Indicates a relationship with zero or one occurrences. -
ONE
Indicates a relationship with exactly one occurrence. -
ZERO_OR_MORE
Indicates a relationship with zero or more occurrences. -
ONE_OR_MORE
Indicates a relationship with one or more occurrences.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toRelationship
Get the relationship based on the provided grouping information.- Parameters:
groupable- the grouping information- Returns:
- the relationship
-