FileDocCategorySizeDatePackage
Address.javaAPI DocGlassfish v2 API5513Sat May 05 19:17:10 BST 2007org.apache.taglibs.standard.examples.beans

Address

public class Address extends Object
Object that represents a Customer.
author
Pierre Delisle
version
$Revision: 1.3 $ $Date: 2007/05/06 02:17:10 $

Fields Summary
private String
line1
Holds value of property line1.
private String
line2
Holds value of property line2.
private String
city
Holds value of property city.
private String
zip
Holds value of property zip.
private String
state
Holds value of property state.
private String
country
Holds value of property country.
Constructors Summary
public Address(String line1, String line2, String city, String state, String zip, String country)

        setLine1(line1);
        setLine2(line2);
        setCity(city);
        setState(state);
        setZip(zip);
        setCountry(country);
    
Methods Summary
public java.lang.StringgetCity()
Getter for property city.

return
Value of property city.

        return city;
    
public java.lang.StringgetCountry()
Getter for property country.

return
Value of property country.

        return country;
    
public java.lang.StringgetLine1()
Getter for property line1.

return
Value of property line1.

        return line1;
    
public java.lang.StringgetLine2()
Getter for property line2.

return
Value of property line2.

        return line2;
    
public java.lang.StringgetState()
Getter for property state.

return
Value of property state.

        return state;
    
public java.lang.StringgetZip()
Getter for property zip.

return
Value of property zip.

        return zip;
    
public voidsetCity(java.lang.String city)
Setter for property city.

param
city New value of property city.

        this.city = city;
    
public voidsetCountry(java.lang.String country)
Setter for property country.

param
country New value of property country.

        this.country = country;
    
public voidsetLine1(java.lang.String line1)
Setter for property line1.

param
line1 New value of property line1.

        this.line1 = line1;
    
public voidsetLine2(java.lang.String line2)
Setter for property line2.

param
line2 New value of property line2.

        this.line2 = line2;
    
public voidsetState(java.lang.String state)
Setter for property state.

param
state New value of property state.

        this.state = state;
    
public voidsetZip(java.lang.String zip)
Setter for property zip.

param
zip New value of property zip.

        this.zip = zip;
    
public java.lang.StringtoString()
Return a String representation of this object.

        StringBuffer sb = new StringBuffer();
        sb.append(line1).append(" ");
        sb.append(city).append(" ");
        sb.append(country);
        return (sb.toString());