public static String partsToName ( Record record , String iNamePrefix , String iNameFirst , String iNameMiddle , String iNameSur , String iNameSuffix , String iNameTitle ) { String string = null ; String strFinal = Constants . BLANK ; if ( iNamePrefix != null ) { string = record . getField ( iNamePrefix ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += string + ". " ; } string = record . getField ( iNameFirst ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += string + " " ; if ( iNameMiddle != null ) { string = record . getField ( iNameMiddle ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += string + " " ; } string = record . getField ( iNameSur ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += string ; if ( iNameSuffix != null ) { string = record . getField ( iNameSuffix ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += " " + string ; } if ( iNameTitle != null ) { string = record . getField ( iNameTitle ) . getString ( ) ; if ( string . length ( ) != 0 ) strFinal += " " + string ; } return strFinal ; }
Convert this complete name to the component parts .