Enum LinkConstraintMethod
- java.lang.Object
-
- java.lang.Enum<LinkConstraintMethod>
-
- com.bayesserver.learning.structure.LinkConstraintMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<LinkConstraintMethod>
public enum LinkConstraintMethod extends Enum<LinkConstraintMethod>
Determines how a link is constrained.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A_TO_B
Enforces a link from A to B.A_TO_B_IF_CHOICE
If a link is detected between A and B, direct it from A to B if a choice of direction is available.A_TO_B_IF_EXISTS
If a link is detected between A and B, ensure it is directed from A to B.A_TO_B_OR_B_TO_A
Enforces a link between A and B, in either direction.NOT_A_TO_B_OR_B_TO_A
Ensures that a link is not created between A and B.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinkConstraintMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static LinkConstraintMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A_TO_B
public static final LinkConstraintMethod A_TO_B
Enforces a link from A to B.
-
A_TO_B_IF_EXISTS
public static final LinkConstraintMethod A_TO_B_IF_EXISTS
If a link is detected between A and B, ensure it is directed from A to B.
-
A_TO_B_IF_CHOICE
public static final LinkConstraintMethod A_TO_B_IF_CHOICE
If a link is detected between A and B, direct it from A to B if a choice of direction is available.
-
A_TO_B_OR_B_TO_A
public static final LinkConstraintMethod A_TO_B_OR_B_TO_A
Enforces a link between A and B, in either direction.
-
NOT_A_TO_B_OR_B_TO_A
public static final LinkConstraintMethod NOT_A_TO_B_OR_B_TO_A
Ensures that a link is not created between A and B.
-
-
Method Detail
-
values
public static LinkConstraintMethod[] 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 (LinkConstraintMethod c : LinkConstraintMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkConstraintMethod 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
-
-