de.danet.an.workflow.api
Class Activity.JoinAndSplitMode

java.lang.Object
  extended byde.danet.an.workflow.api.Activity.JoinAndSplitMode
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Activity

public static class Activity.JoinAndSplitMode
extends java.lang.Object
implements java.io.Serializable

This class defines the join and split modes for an activity.

See Also:
Serialized Form

Field Summary
static Activity.JoinAndSplitMode AND
          AND join or split.
static Activity.JoinAndSplitMode XOR
          XOR join or split.
 
Constructor Summary
protected Activity.JoinAndSplitMode(java.lang.String text)
          Default constructor.
 
Method Summary
static Activity.JoinAndSplitMode fromString(java.lang.String text)
          Get the join/split mode by name.
 boolean isAND()
          Checks if the mode is "AND".
 boolean isXOR()
          Checks if the mode is "XOR".
 java.lang.String toString()
          Returns the mode as text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XOR

public static final Activity.JoinAndSplitMode XOR
XOR join or split.


AND

public static final Activity.JoinAndSplitMode AND
AND join or split.

Constructor Detail

Activity.JoinAndSplitMode

protected Activity.JoinAndSplitMode(java.lang.String text)
Default constructor.

Parameters:
text - textual representation of the mode.
Method Detail

toString

public final java.lang.String toString()
Returns the mode as text.

Returns:
mode as text

fromString

public static Activity.JoinAndSplitMode fromString(java.lang.String text)
                                            throws java.lang.IllegalArgumentException
Get the join/split mode by name.

Parameters:
text - mode name.
Returns:
mode object
Throws:
java.lang.IllegalArgumentException - if text is not a valid mode name.

isXOR

public final boolean isXOR()
Checks if the mode is "XOR".

Returns:
true if the mode is "XOR".

isAND

public final boolean isAND()
Checks if the mode is "AND".

Returns:
true if the mode is "AND".