Exemplo n.º 1
0
  /**
   * Create a HumanNameDataType from Rolodex object
   *
   * @param rolodex Rolodex object
   * @return HumanNameDataType corresponding to the rolodex object.
   */
  public HumanNameDataType getHumanNameDataType(Rolodex 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;
  }
Exemplo n.º 2
0
  /**
   * Create HumanNameDataType from KeyPersonInfo object
   *
   * @param keyPerson KeyPersonInfo
   * @return HumanNameDataType corresponding to the KeyPersonInfo object
   */
  public HumanNameDataType getHumanNameDataType(KeyPersonInfo keyPerson) {

    HumanNameDataType humanName = HumanNameDataType.Factory.newInstance();
    if (keyPerson != null) {
      humanName.setFirstName(keyPerson.getFirstName());
      humanName.setLastName(keyPerson.getLastName());
      String middleName = keyPerson.getMiddleName();
      if (middleName != null && !middleName.equals("")) {
        humanName.setMiddleName(middleName);
      }
    }
    return humanName;
  }
Exemplo n.º 3
0
  /**
   * Create HumanNameDataType from DepartmentalPerson object
   *
   * @param person DepartmentalPerson
   * @return HumanNameDataType corresponding to the DepartmentalPerson object
   */
  public HumanNameDataType getHumanNameDataType(DepartmentalPerson 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;
  }