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