Package info.ineighborhood.cardme

Examples of info.ineighborhood.cardme.MailingAddress


   * @param streetAddress
   * @param addressLocation
   * @return the address
   */
  private static MailingAddress createAddress(VCardAddress vcardAddress, Type addressLocation){
    MailingAddress address = new MailingAddressImpl();
    address.addType(addressLocation);
    address.setCountry(vcardAddress.getCountry() != null ? vcardAddress.getCountry() : "");
    address.setRegion(vcardAddress.getRegion() != null ? vcardAddress.getRegion() : "");
    address.setLocality(vcardAddress.getCity() != null ? vcardAddress.getCity() : "");
    address.setStreetAddress(vcardAddress.getStreet() != null ? vcardAddress.getStreet() : "");
    address.setPostalCode(vcardAddress.getCap() != null ? vcardAddress.getCap() : "");
    return address;
  }
View Full Code Here

TOP

Related Classes of info.ineighborhood.cardme.MailingAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.