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

Class GPDurationType

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

public class GPDurationType
extends Object


Field Summary
static GPDurationType DURATION_TYPE_DAY
          Duration type The main unit of the duration is "day"
static GPDurationType DURATION_TYPE_HOUR
          Duration type The main unit of the duration is "hour"
static GPDurationType DURATION_TYPE_INVALID_DURATION
          Duration type Invalid duration type
static GPDurationType DURATION_TYPE_MINUTE
          Duration type The main unit of the duration is "minute"
static GPDurationType DURATION_TYPE_MONTH
          Duration type The main unit of the duration is "month"
static GPDurationType DURATION_TYPE_WEEK
          Duration type The main unit of the duration is "week"
static GPDurationType DURATION_TYPE_YEAR
          Duration type The main unit of the duration is "year"
 
Method Summary
 int getCode()
           
static GPDurationType getTypeForCode(int code)
          Get the GPDurationType 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

DURATION_TYPE_INVALID_DURATION

public static final GPDurationType DURATION_TYPE_INVALID_DURATION
Duration type Invalid duration type


DURATION_TYPE_DAY

public static final GPDurationType DURATION_TYPE_DAY
Duration type The main unit of the duration is "day"


DURATION_TYPE_HOUR

public static final GPDurationType DURATION_TYPE_HOUR
Duration type The main unit of the duration is "hour"


DURATION_TYPE_MINUTE

public static final GPDurationType DURATION_TYPE_MINUTE
Duration type The main unit of the duration is "minute"


DURATION_TYPE_MONTH

public static final GPDurationType DURATION_TYPE_MONTH
Duration type The main unit of the duration is "month"


DURATION_TYPE_WEEK

public static final GPDurationType DURATION_TYPE_WEEK
Duration type The main unit of the duration is "week"


DURATION_TYPE_YEAR

public static final GPDurationType DURATION_TYPE_YEAR
Duration type The main unit of the duration is "year"

Method Detail

getCode

public int getCode()
Returns:
the code of this duration type

getTypeForCode

public static GPDurationType getTypeForCode(int code)
                                     throws IllegalArgumentException
Get the GPDurationType instance corresponding to a given code.

Parameters:
code - the duration type code
Returns:
the GPDurationType
Throws:
IllegalArgumentException - if no GPDurationType is defined for the given code.


Copyright 2006 SAP AG Complete Copyright Notice