content: package org.agoncal.book.javaee7.chapter03;
  
  import javax.validation.constraints.NotNull;
  
  /**
   * @author Antonio Goncalves
   *         APress Book - Beginning Java EE 7 with Glassfish 4
   *         http://www.apress.com/
   *         http://www.antoniogoncalves.org
   *         --
   */
  public class Address {
  
    // ======================================
    // =             Attributes             =
    // ======================================
  
    @NotNull
    private String street1;
    private String street2;
    @NotNull
    private String city;
    private String state;
    @NotNull
    @ZipCode
    private String zipcode;
    private String country;
  
    // ======================================
    // =            Constructors            =
    // ======================================
  
    public Address() {
    }
  
    public Address(String street1, String city, String state, String zipcode, String country) {
      this.street1 = street1;
      this.city = city;
      this.state = state;
      this.zipcode = zipcode;
      this.country = country;
    }
  
    // ======================================
    // =          Getters & Setters         =
    // ======================================
  
    public String getStreet1() {
      return street1;
    }
  
    public void setStreet1(String street1) {
      this.street1 = street1;
    }
  
    public String getStreet2() {
      return street2;
    }
  
    public void setStreet2(String street2) {
      this.street2 = street2;
    }
  
    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 getZipcode() {
      return zipcode;
    }
  
    public void setZipcode(String zipcode) {
      this.zipcode = zipcode;
    }
  
    public String getCountry() {
      return country;
    }
  
    public void setCountry(String country) {
      this.country = country;
    }
  }