Android Open Source - WhoIsThis Address






From Project

Back to project page WhoIsThis.

License

The source code is released under:

MIT License

If you think the Android project WhoIsThis listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package hu.Edudroid.WhoIsThis;
//from  w  ww .  j av  a  2 s  .c o  m
public class Address {
   private String poBox;
   private String street;
   private String city;
   private String state;
   private String postalCode;
   private String country;
   private String type;
   private String type_label;
   private String asString = "";
   
   public String getType() {
     return type;
   }
   public void setType(String type) {
     this.type = type;
   }
  public String getTypeLabel() {
    return type_label;
  }  
  public void setTypeLabel(String type_label) {
    this.type_label = type_label;
  }
   public String getPoBox() {
     return poBox;
   }
   public void setPoBox(String poBox) {
     this.poBox = poBox;
   }
   public String getStreet() {
     return street;
   }
   public void setStreet(String street) {
     this.street = street;
   }
   public String getCity() {
     return city;
   }
   public void setCity(String city) {
     this.city = city;
   }
   public String getState() {
     return state;
   }
   public void setState(String state) {
     this.state = state;
   }
   public String getPostalCode() {
     return postalCode;
   }
   public void setPostalCode(String postalCode) {
     this.postalCode = postalCode;
   }
   public String getCountry() {
     return country;
   }
   public void setCountry(String country) {
     this.country = country;
   }
   public String toString() {
     if (this.asString.length() > 0) {
       return(this.asString);
     } else {
       String addr = "";
       if (this.getPoBox() != null) {
         addr = addr + this.getPoBox() + ", ";
       }
       if (this.getStreet() != null) {
         addr = addr + this.getStreet();
       }
       if (this.getCity() != null) {
         addr = addr + "\n" + this.getCity() + ", ";
       }
       if (this.getState() != null) {
         addr = addr + this.getState() + " ";
       }
       if (this.getPostalCode() != null) {
         addr = addr + this.getPostalCode() + " ";
       }
       if (this.getCountry() != null) {
         addr = addr + this.getCountry();
       }
       return(addr);
     }
   }
   
   public Address(String asString, String type) {
     this.asString = asString;
     this.type = type;
   }
   
   public Address(String poBox, String street, String city, String state, 
       String postal, String country, String type) {
     this.setPoBox(poBox);
      this.setStreet(street);
     this.setCity(city);
     this.setState(state);
     this.setPostalCode(postal);
     this.setCountry(country);
     this.setType(type);
   }
 }




Java Source Code List

hu.Edudroid.WhoIsThis.Address.java
hu.Edudroid.WhoIsThis.CallHistoryItem.java
hu.Edudroid.WhoIsThis.CallHistory.java
hu.Edudroid.WhoIsThis.ContactAPI.java
hu.Edudroid.WhoIsThis.ContactDetails.java
hu.Edudroid.WhoIsThis.ContactList.java
hu.Edudroid.WhoIsThis.Contact.java
hu.Edudroid.WhoIsThis.Email.java
hu.Edudroid.WhoIsThis.FacebookFeed.java
hu.Edudroid.WhoIsThis.IM.java
hu.Edudroid.WhoIsThis.Main.java
hu.Edudroid.WhoIsThis.Organization.java
hu.Edudroid.WhoIsThis.Phone.java
hu.Edudroid.WhoIsThis.PieDetailsItem.java
hu.Edudroid.WhoIsThis.ShowStatistics.java
hu.Edudroid.WhoIsThis.View_PieChart.java