Package com.damnhandy.uri.template
Class Address
- java.lang.Object
-
- com.damnhandy.uri.template.Address
-
- Direct Known Subclasses:
ExtendedAddress,ExtendedAddressWithNestedLists
public class Address extends Object
A Address POJO.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCity()Get the city.StringgetCountry()Get the country.StringgetIgnored()Get the ignored.StringgetPostalCode()Get the postalCode.StringgetState()StringgetStreet()Get the street.booleanisActive()Returns true if the address is activevoidsetActive(boolean active)Sets the active statusvoidsetCity(String city)Set the city.voidsetCountry(String country)Set the country.voidsetIgnored(String ignored)Set the ignored.voidsetPostalCode(String postalCode)Set the postalCode.voidsetState(String state)voidsetStreet(String street)Set the street.
-
-
-
Method Detail
-
getStreet
public String getStreet()
Get the street.- Returns:
- the street.
-
setStreet
public void setStreet(String street)
Set the street.- Parameters:
street- The street to set.
-
getCity
public String getCity()
Get the city.- Returns:
- the city.
-
setCity
public void setCity(String city)
Set the city.- Parameters:
city- The city to set.
-
getState
public String getState()
-
setState
public void setState(String state)
-
getPostalCode
public String getPostalCode()
Get the postalCode.- Returns:
- the postalCode.
-
setPostalCode
public void setPostalCode(String postalCode)
Set the postalCode.- Parameters:
postalCode- The postalCode to set.
-
getCountry
public String getCountry()
Get the country.- Returns:
- the country.
-
setCountry
public void setCountry(String country)
Set the country.- Parameters:
country- The country to set.
-
getIgnored
public String getIgnored()
Get the ignored.- Returns:
- the ignored.
-
setIgnored
public void setIgnored(String ignored)
Set the ignored.- Parameters:
ignored- The ignored to set.
-
isActive
public boolean isActive()
Returns true if the address is active- Returns:
-
setActive
public void setActive(boolean active)
Sets the active status- Parameters:
active-
-
-