net.sf.mpxj
Class MPPResourceField

java.lang.Object
  extended by net.sf.mpxj.MPPResourceField

public final class MPPResourceField
extends Object

Utility class used to map between the integer values held in MS Project to represent a resource field, and the enumerated type used to represent resource fields in MPXJ.


Field Summary
static int MAX_VALUE
           
static int RESOURCE_FIELD_BASE
           
 
Constructor Summary
MPPResourceField()
           
 
Method Summary
static int getID(ResourceField value)
          Retrieve the ID of a field, as used by MS Project.
static ResourceField getInstance(int value)
          Retrieve an instance of the ResourceField class based on the data read from an MS Project file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final int MAX_VALUE
See Also:
Constant Field Values

RESOURCE_FIELD_BASE

public static final int RESOURCE_FIELD_BASE
See Also:
Constant Field Values
Constructor Detail

MPPResourceField

public MPPResourceField()
Method Detail

getInstance

public static ResourceField getInstance(int value)
Retrieve an instance of the ResourceField class based on the data read from an MS Project file.

Parameters:
value - value from an MS Project file
Returns:
ResourceField instance

getID

public static int getID(ResourceField value)
Retrieve the ID of a field, as used by MS Project.

Parameters:
value - field instance
Returns:
field ID


Copyright © 2012. All Rights Reserved.