Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * The SmartWeb Framework
   * Copyright (C) 2004-2006
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Lesser General Public
   * License as published by the Free Software Foundation; either
   * version 2.1 of the License, or (at your option) any later version.
   *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  * For further informations on the SmartWeb Framework please visit
  *
  *                        http://smartweb.sourceforge.net
  */
  
 package net.smartlab.web.registry;

Represents a fully qualified mail address usable for postal delivery

Author(s):
rlogiacco
Hibernate.joined:
subclass schema="registry" table="`mail-address`"
Hibernate.joined:
subclass-key column="`id`"
 
 public class MailAddress extends Address {
 
 	private final static long serialVersionUID = -678094002234942516L;

An optional description for delivery purposes.
 
 	private String at;
The fully qualified city.

Directed:
true
Stereotype:
component
 
 	private Locality locality;
An optional name to describe an additional subdivision of the city.
 
 	private String hamlet;
The delivery code used in local area identifications.
 
 	private String zipCode;
The street.
 
 	private String street;
The string identifing the street subdivision.
 
 	private String civic;

TODO documentation

Returns:
returns the at.
Hibernate.property:
column="`at`" length="250"
 
 	public String getAt() {
 		return ;
 	}

TODO documentation

Parameters:
at the at to set.
 
 	public void setAt(String at) {
 		this. = at;
 	}

TODO documentation

Returns:
returns the civic.
Hibernate.property:
column="`civic`" length="50"
 
 	public String getCivic() {
 		return ;
 	}

TODO documentation

Parameters:
civic the civic to set.
 
 	public void setCivic(String civic) {
 		this. = civic;
 	}

TODO documentation

Returns:
returns the locality.
Hibernate.component:
	public Locality getLocality() {
		return ;
	}

TODO documentation

Parameters:
locality the locality to set.
	public void setLocality(Locality locality) {
		this. = locality;
	}

TODO documentation

Returns:
returns the hamlet.
Hibernate.property:
column="`hamlet`" length="250"
	public String getHamlet() {
		return ;
	}

TODO documentation

Parameters:
hamlet the hamlet to set.
	public void setHamlet(String hamlet) {
		this. = hamlet;
	}

TODO documentation

Returns:
returns the street.
Hibernate.property:
column="`street`" length="250"
	public String getStreet() {
		return ;
	}

TODO documentation

Parameters:
street the street to set.
	public void setStreet(String street) {
		this. = street;
	}

TODO documentation

Returns:
returns the zipCode.
Hibernate.property:
column="`zipCode`" length="25"
	public String getZipCode() {
		return ;
	}

TODO documentation

Parameters:
zipCode the zipCode to set.
	public void setZipCode(String zipCode) {
		this. = zipCode;
	}
    
    
    public String getFormattedString() {
        //FIXME use StringBuffer instead of String concat
        String address = this. != null ? this. + " " : "";
        address = address + this. != null ? this. + " " : "";
        address = address + this. != null ? this. + " " : "";
        if (this. != null) {
            address = address + this..getCity() != null ? this..getCity() + " " : "";
            address = address + this..getState() != null ? this..getState() + " " : "";
            address = address + this..getCountry() != null ? this..getCountry().getDisplay() + " " : "";
        }
        return address;
    }
New to GrepCode? Check out our FAQ X