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 interfaceAddress.CompleteCheck both basic constraints and high level ones.static interfaceAddress.HighLevelCoherenceCheck 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 StringgetAddressline1()StringgetAddressline2()@Size(max=30) @NotNull StringgetCity()CountrygetCountry()StringgetZipCode()voidsetAddressline1(String addressline1)voidsetAddressline2(String addressline2)voidsetCity(String city)voidsetCountry(Country country)voidsetZipCode(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:
getZipCodein interfaceZipCodeCityCarrier
-
setZipCode
public void setZipCode(String zipCode)
-
getCity
@Size(max=30) @NotNull public @Size(max=30) @NotNull String getCity()
- Specified by:
getCityin interfaceZipCodeCityCarrier
-
setCity
public void setCity(String city)
-
getCountry
public Country getCountry()
-
setCountry
public void setCountry(Country country)
-
-