public static ResourceField getInstance(int value)
   {
      ResourceField result = null;

      if (value >= 0 && value < FIELD_ARRAY.length)
      {
         result = FIELD_ARRAY[value];
      }
      else
      {
         if ((value & 0x8000) != 0)
         {
            int baseValue = ResourceField.ENTERPRISE_CUSTOM_FIELD1.getValue();
            int id = baseValue + (value & 0xFFF);
            result = ResourceField.getInstance(id);
         }
      }

      return (result);
   }
public static ResourceField getInstance ( int value ) { ResourceField result = null ; if ( value >= 0 && value < FIELD_ARRAY . length ) { result = FIELD_ARRAY [ value ] ; } else { if ( ( value & 0x8000 ) != 0 ) { int baseValue = ResourceField . ENTERPRISE_CUSTOM_FIELD1 . getValue ( ) ; int id = baseValue + ( value & 0xFFF ) ; result = ResourceField . getInstance ( id ) ; } } return ( result ) ; }
Retrieve an instance of the ResourceField class based on the data read from an
MS Project file.

@param value value from an MS Project file
@return ResourceField instance