@ZipCodeCityCoherence public class Address extends Object implements ZipCodeCityCarrier
Modifier and Type | Class and Description |
---|---|
static interface |
Address.Complete
Check both basic constraints and high level ones.
|
static interface |
Address.HighLevelCoherence
Check coherence on the overall object
Needs basic checking to be green first
|
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
String |
getAddressline1() |
String |
getAddressline2() |
@Size(max=30) @NotNull String |
getCity() |
Country |
getCountry() |
String |
getZipCode() |
void |
setAddressline1(String addressline1) |
void |
setAddressline2(String addressline2) |
void |
setCity(String city) |
void |
setCountry(Country country) |
void |
setZipCode(String zipCode) |
public String getAddressline1()
public void setAddressline1(String addressline1)
public String getAddressline2()
public void setAddressline2(String addressline2)
public String getZipCode()
getZipCode
in interface ZipCodeCityCarrier
public void setZipCode(String zipCode)
@Size(max=30) @NotNull public @Size(max=30) @NotNull String getCity()
getCity
in interface ZipCodeCityCarrier
public void setCity(String city)
public Country getCountry()
public void setCountry(Country country)
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.