Package org.apache.bval.jsr.example
Class Address
- java.lang.Object
-
- org.apache.bval.jsr.example.Address
-
- All Implemented Interfaces:
ZipCodeCityCarrier
- Direct Known Subclasses:
BusinessAddress
,ValidationTest.FooAddress
@ZipCodeCityCoherence public class Address extends Object implements ZipCodeCityCarrier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getAddressline1
public String getAddressline1()
-
setAddressline1
public void setAddressline1(String addressline1)
-
getAddressline2
public String getAddressline2()
-
setAddressline2
public void setAddressline2(String addressline2)
-
getZipCode
public String getZipCode()
- Specified by:
getZipCode
in interfaceZipCodeCityCarrier
-
setZipCode
public void setZipCode(String zipCode)
-
getCity
@Size(max=30) @NotNull public @Size(max=30) @NotNull String getCity()
- Specified by:
getCity
in interfaceZipCodeCityCarrier
-
setCity
public void setCity(String city)
-
getCountry
public Country getCountry()
-
setCountry
public void setCountry(Country country)
-
-