public HumanNameDataType getHumanNameDataType ( RolodexContract rolodex ) { HumanNameDataType humanName = HumanNameDataType . Factory . newInstance ( ) ; if ( rolodex != null ) { humanName . setFirstName ( rolodex . getFirstName ( ) ) ; humanName . setLastName ( rolodex . getLastName ( ) ) ; String middleName = rolodex . getMiddleName ( ) ; if ( middleName != null && ! middleName . equals ( "" ) ) { humanName . setMiddleName ( middleName ) ; } } return humanName ; }
Create a HumanNameDataType from Rolodex object