org.eclipse.xtext.serializer.analysis
Enum IGrammarConstraintProvider.RelationalDependencyType

java.lang.Object
  extended by java.lang.Enum<IGrammarConstraintProvider.RelationalDependencyType>
      extended by org.eclipse.xtext.serializer.analysis.IGrammarConstraintProvider.RelationalDependencyType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IGrammarConstraintProvider.RelationalDependencyType>
Enclosing interface:
IGrammarConstraintProvider

public static enum IGrammarConstraintProvider.RelationalDependencyType
extends java.lang.Enum<IGrammarConstraintProvider.RelationalDependencyType>


Enum Constant Summary
EXCLUDE_IF_SET
          (b >= 1) => (a == 0)
EXCLUDE_IF_UNSET
          (b == 0) => (a == 0)
MANDATORY_IF_SET
          (b >= 1) => (a >= 0)
SAME
          a == b
SAME_OR_LESS
          a <= b
SAME_OR_MORE
          a >= b
 
Method Summary
static IGrammarConstraintProvider.RelationalDependencyType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IGrammarConstraintProvider.RelationalDependencyType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXCLUDE_IF_SET

public static final IGrammarConstraintProvider.RelationalDependencyType EXCLUDE_IF_SET
(b >= 1) => (a == 0)


EXCLUDE_IF_UNSET

public static final IGrammarConstraintProvider.RelationalDependencyType EXCLUDE_IF_UNSET
(b == 0) => (a == 0)


MANDATORY_IF_SET

public static final IGrammarConstraintProvider.RelationalDependencyType MANDATORY_IF_SET
(b >= 1) => (a >= 0)


SAME

public static final IGrammarConstraintProvider.RelationalDependencyType SAME
a == b


SAME_OR_MORE

public static final IGrammarConstraintProvider.RelationalDependencyType SAME_OR_MORE
a >= b


SAME_OR_LESS

public static final IGrammarConstraintProvider.RelationalDependencyType SAME_OR_LESS
a <= b

Method Detail

values

public static IGrammarConstraintProvider.RelationalDependencyType[] 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 (IGrammarConstraintProvider.RelationalDependencyType c : IGrammarConstraintProvider.RelationalDependencyType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IGrammarConstraintProvider.RelationalDependencyType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null