com.prozima.pengine
Enum ScheduleNode.PredecessorType

java.lang.Object
  extended by java.lang.Enum<ScheduleNode.PredecessorType>
      extended by com.prozima.pengine.ScheduleNode.PredecessorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ScheduleNode.PredecessorType>
Enclosing class:
ScheduleNode

public static enum ScheduleNode.PredecessorType
extends java.lang.Enum<ScheduleNode.PredecessorType>

Specifies the type of predecessor in a relationship.


Enum Constant Summary
ACTIVITY
          Predecessor is an activity.
ALL
          Indicates all types of predecessor.
MILESTONE
          Predecessor is a milestone.
 
Method Summary
static ScheduleNode.PredecessorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ScheduleNode.PredecessorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACTIVITY

public static final ScheduleNode.PredecessorType ACTIVITY
Predecessor is an activity.


ALL

public static final ScheduleNode.PredecessorType ALL
Indicates all types of predecessor. Used internally by PEngine.


MILESTONE

public static final ScheduleNode.PredecessorType MILESTONE
Predecessor is a milestone.

Method Detail

valueOf

public static ScheduleNode.PredecessorType 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

values

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

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