com.sap.caf.eu.gp.process.api

Class GPProcessMultiplicity

java.lang.Object
  extended bycom.sap.caf.eu.gp.process.api.GPProcessMultiplicity

public class GPProcessMultiplicity
extends Object


Field Summary
static GPProcessMultiplicity MULTIPLE_INSTANCES_MULTIPLICITY
          The process may have multiple instances.
static GPProcessMultiplicity SINGLE_INSTANCE_MULTIPLICITY
          The process may have at most one instance either running or completed.
static GPProcessMultiplicity SINGLE_RUNNING_INSTANCE_MULTIPLICITY
          The process may have only one running instance, and possibly some completed instances.
 
Method Summary
 String getCode()
           
static GPProcessMultiplicity getMultiplicityForCode(String code)
          Get the GPProcessMultiplicity instance corresponding to a given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTIPLE_INSTANCES_MULTIPLICITY

public static final GPProcessMultiplicity MULTIPLE_INSTANCES_MULTIPLICITY
The process may have multiple instances.


SINGLE_RUNNING_INSTANCE_MULTIPLICITY

public static final GPProcessMultiplicity SINGLE_RUNNING_INSTANCE_MULTIPLICITY
The process may have only one running instance, and possibly some completed instances.


SINGLE_INSTANCE_MULTIPLICITY

public static final GPProcessMultiplicity SINGLE_INSTANCE_MULTIPLICITY
The process may have at most one instance either running or completed.

Method Detail

getCode

public String getCode()
Returns:
the code for this multiplicity

getMultiplicityForCode

public static GPProcessMultiplicity getMultiplicityForCode(String code)
                                                    throws IllegalArgumentException
Get the GPProcessMultiplicity instance corresponding to a given code.

Parameters:
code - a multiplicity code
Returns:
the GPProcessMultiplicity instance
Throws:
IllegalArgumentException - if no GPProcessMultiplicity is defined for the given code.


Copyright 2006 SAP AG Complete Copyright Notice