public Duration getDuration ( int field ) throws MPXJException { Duration result ; if ( ( field < m_fields . length ) && ( m_fields [ field ] . length ( ) != 0 ) ) { result = DurationUtility . getInstance ( m_fields [ field ] , m_formats . getDurationDecimalFormat ( ) , m_locale ) ; } else { result = null ; } return ( result ) ; }
Accessor method used to retrieve an Duration object representing the contents of an individual field . If the field does not exist in the record null is returned .