Class Address
- java.lang.Object
-
- org.apache.bval.jsr.groups.redefining.Address
-
- All Implemented Interfaces:
ZipCodeCityCarrier
@GroupSequence({Address.class,HighLevelCoherence.class,ExtraCareful.class}) @ZipCodeCityCoherence(groups=HighLevelCoherence.class) public class Address extends Object implements ZipCodeCityCarrier
Example 3.6. Redefining Default group for Address: To redefine Default for a class, place a @GroupSequence annotation on the class ; this sequence expresses the sequence of groups that does substitute Default for this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Address.ExtraCareful
Extra-careful validation group.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
getCity()
String
getStreet1()
String
getZipCode()
void
setCity(String city)
void
setStreet1(String street1)
void
setZipCode(String zipCode)
-
-
-
Method Detail
-
getStreet1
public String getStreet1()
-
setStreet1
public void setStreet1(String street1)
-
getZipCode
public String getZipCode()
- Specified by:
getZipCode
in interfaceZipCodeCityCarrier
-
setZipCode
public void setZipCode(String zipCode)
-
getCity
public String getCity()
- Specified by:
getCity
in interfaceZipCodeCityCarrier
-
setCity
public void setCity(String city)
-
-