Primavera Integration API 7.0

com.primavera.integration.client.bo.enm
Class ActivityType

java.lang.Object
  extended by com.primavera.integration.client.bo.enm.EnumType
      extended by com.primavera.integration.client.bo.enm.ActivityType

public class ActivityType
extends EnumType

Activity type enumerations are used with activities. They are also used with projects and baseline projects for specifying the activity default activity type. The type can be 'Task Dependent', 'Resource Dependent', 'Level of Effort', 'Milestone', or 'WBS Summary'. A 'Task Dependent' activity is scheduled using the activity's calendar rather than the calendars of the assigned resources. A 'Resource Dependent' activity is scheduled using the calendars of the assigned resources. This type is used when several resources are assigned to the activity, but they may work separately. A 'Milestone' is a zero-duration activity without resources, marking a significant project event. A 'Level of Effort' activity has a duration that is determined by its dependent activities. Administration-type activities are typically 'Level of Effort'. A 'WBS Summary' activity provides rollup for a group of activities that share a common WBS level (determined by the WBS code). The duration of the activity is determined by the earliest start of all the activities within the group and latest finish of all the activities in the group. These dates are not live rollups, they are calculated during schedule time. Constraints and expected finish dates are not allowed on WBS Summary activities.

To use an enumeration in a where clause, make sure you use the internal database value. This can be retrieved from a particular enum instance by calling getValue().


Field Summary
static ActivityType FINISH_MILESTONE
           
static ActivityType LEVEL_OF_EFFORT
           
static ActivityType MILESTONE
           
static ActivityType NULL
           
static ActivityType RESOURCE_DEPENDENT
           
static ActivityType TASK_DEPENDENT
           
static ActivityType WBS_SUMMARY
           
 
Method Summary
static ActivityType getActivityType(int iActivityType)
          Gets an instance of ActivityType based on the integer value specified.
static ActivityType getActivityType(java.lang.String sActivityType)
          Gets an instance of ActivityType based on the String value specified.
 java.lang.String getDescription()
          Gets the description of this ActivityType instance
static java.lang.String[] getEnumDescriptions()
          Gets an array of all descriptions for this enumeration
static java.lang.String[] getEnumValues()
          Gets an array of all internal values for this enumeration
 java.lang.String getValue()
          Gets the internal value of this ActivityType instance
 java.lang.String toString()
          Returns a string representation of the object, which is the same as the description returned by the getDescription() method
 
Methods inherited from class com.primavera.integration.client.bo.enm.EnumType
equals, hashCode, intValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final ActivityType NULL

TASK_DEPENDENT

public static final ActivityType TASK_DEPENDENT

RESOURCE_DEPENDENT

public static final ActivityType RESOURCE_DEPENDENT

LEVEL_OF_EFFORT

public static final ActivityType LEVEL_OF_EFFORT

MILESTONE

public static final ActivityType MILESTONE

FINISH_MILESTONE

public static final ActivityType FINISH_MILESTONE

WBS_SUMMARY

public static final ActivityType WBS_SUMMARY
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object, which is the same as the description returned by the getDescription() method

Overrides:
toString in class java.lang.Object
Returns:
String a string representation of the object

getValue

public java.lang.String getValue()
Gets the internal value of this ActivityType instance

Specified by:
getValue in class EnumType
Returns:
String the internal value

getDescription

public java.lang.String getDescription()
Gets the description of this ActivityType instance

Specified by:
getDescription in class EnumType
Returns:
String the description

getActivityType

public static ActivityType getActivityType(java.lang.String sActivityType)
Gets an instance of ActivityType based on the String value specified.

Parameters:
sActivityType - the internal value or description
Returns:
ActivityType the unique ActivityType instance

getActivityType

public static ActivityType getActivityType(int iActivityType)
Gets an instance of ActivityType based on the integer value specified.

Parameters:
iActivityType - an integer representing a particular value of this class. This value is also used when exporting to XML.
Returns:
ActivityType the unique ActivityType instance

getEnumValues

public static java.lang.String[] getEnumValues()
Gets an array of all internal values for this enumeration

Returns:
String[] an array of all internal values

getEnumDescriptions

public static java.lang.String[] getEnumDescriptions()
Gets an array of all descriptions for this enumeration

Returns:
String[] an array of all descriptions

Primavera Integration API 7.0

Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.