Enum AbstractRelationshipManagementAction.RelationshipCardinality
- java.lang.Object
-
- java.lang.Enum<AbstractRelationshipManagementAction.RelationshipCardinality>
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractRelationshipManagementAction.RelationshipCardinality
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractRelationshipManagementAction.RelationshipCardinality>
- Enclosing class:
- AbstractRelationshipManagementAction
public static enum AbstractRelationshipManagementAction.RelationshipCardinality extends Enum<AbstractRelationshipManagementAction.RelationshipCardinality>
Defines the cardinality between inventory objects. There are only two entries because those are the ones used in practice.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANY_TO_MANY
Multiple source objects can be related to multiple target objects.ONE_TO_MANY
Multiple source objects can be related to only one target object.ONE_TO_ONE
A single source object can be related to only one target object.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractRelationshipManagementAction.RelationshipCardinality
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractRelationshipManagementAction.RelationshipCardinality[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE_TO_ONE
public static final AbstractRelationshipManagementAction.RelationshipCardinality ONE_TO_ONE
A single source object can be related to only one target object.
-
ONE_TO_MANY
public static final AbstractRelationshipManagementAction.RelationshipCardinality ONE_TO_MANY
Multiple source objects can be related to only one target object.
-
MANY_TO_MANY
public static final AbstractRelationshipManagementAction.RelationshipCardinality MANY_TO_MANY
Multiple source objects can be related to multiple target objects.
-
-
Method Detail
-
values
public static AbstractRelationshipManagementAction.RelationshipCardinality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractRelationshipManagementAction.RelationshipCardinality c : AbstractRelationshipManagementAction.RelationshipCardinality.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractRelationshipManagementAction.RelationshipCardinality valueOf(String name)
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
-
-