code: public static int getMpxField(int value)
     {
        int result = 0;
  
        if (value >= 0 && value < MPXJ_MPX_ARRAY.length)
        {
           result = MPXJ_MPX_ARRAY[value];
        }
        return (result);
     }
docs: Retrieve the integer value used to represent a task field in an
  MPX file.
  
  @param value MPXJ task field value
  @return MPX field value