public Number getUnits(int field) throws MPXJException
   {
      Number result;

      if ((field < m_fields.length) && (m_fields[field].length() != 0))
      {
         try
         {
            result = Double.valueOf(m_formats.getUnitsDecimalFormat().parse(m_fields[field]).doubleValue() * 100);
         }

         catch (ParseException ex)
         {
            throw new MPXJException("Failed to parse units", ex);
         }
      }
      else
      {
         result = null;
      }

      return (result);
   }
public Number getUnits ( int field ) throws MPXJException { Number result ; if ( ( field < m_fields . length ) && ( m_fields [ field ] . length ( ) != 0 ) ) { try { result = Double . valueOf ( m_formats . getUnitsDecimalFormat ( ) . parse ( m_fields [ field ] ) . doubleValue ( ) * 100 ) ; } catch ( ParseException ex ) { throw new MPXJException ( "Failed to parse units" , ex ) ; } } else { result = null ; } return ( result ) ; }
Accessor method used to retrieve a Number instance representing the
contents of an individual field. If the field does not exist in the
record, null is returned.

@param field the index number of the field to be retrieved
@return the value of the required field
@throws MPXJException normally thrown when parsing fails