Class PostalAddress
- java.lang.Object
-
- info.ejava.examples.ejb.interceptor.bo.PostalAddress
-
- All Implemented Interfaces:
Serializable
@Embeddable public class PostalAddress extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z-\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z-]+\\ *)+$",groups=PostNormalizedCheck.class) String
city
private @NotNull(groups=PrePersistCheck.class) @Size(min=2,max=2,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="[A-Za-z]{2}",groups=PreNormalizedCheck.class) @Pattern(regexp="[A-Z][A-Z]",groups=PostNormalizedCheck.class) String
state
private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=2,max=30,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([0-9]+\\ )([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String
street1
private @Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String
street2
private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=5,max=10,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9]{5}(-[0-9]{4})?$",groups=PostNormalizedCheck.class) String
zip
-
Constructor Summary
Constructors Constructor Description PostalAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCity()
String
getState()
String
getStreet1()
String
getStreet2()
String
getZip()
void
setCity(String city)
void
setState(String state)
void
setStreet1(String street1)
void
setStreet2(String street2)
void
setZip(String zip)
String
toString()
-
-
-
Field Detail
-
street1
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=2, max=30, groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([0-9]+\\ )([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=2,max=30,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([0-9]+\\ )([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String street1
-
street2
@Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) private @Pattern(regexp="^[0-9-A-Za-z\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z0-9-]+\\ *)+$",groups=PostNormalizedCheck.class) String street2
-
city
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z-\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z-]+\\ *)+$",groups=PostNormalizedCheck.class) private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[A-Za-z-\'\\ ]+$",groups=PreNormalizedCheck.class) @Pattern(regexp="^([A-Z][a-z-]+\\ *)+$",groups=PostNormalizedCheck.class) String city
-
state
@NotNull(groups=PrePersistCheck.class) @Size(min=2, max=2, groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="[A-Za-z]{2}",groups=PreNormalizedCheck.class) @Pattern(regexp="[A-Z][A-Z]",groups=PostNormalizedCheck.class) private @NotNull(groups=PrePersistCheck.class) @Size(min=2,max=2,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="[A-Za-z]{2}",groups=PreNormalizedCheck.class) @Pattern(regexp="[A-Z][A-Z]",groups=PostNormalizedCheck.class) String state
-
zip
@NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=5, max=10, groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9]{5}(-[0-9]{4})?$", groups=PostNormalizedCheck.class) private @NotNull(groups={PreNormalizedCheck.class,PrePersistCheck.class}) @Size(min=5,max=10,groups={PostNormalizedCheck.class,PrePersistCheck.class}) @Pattern(regexp="^[0-9]{5}(-[0-9]{4})?$",groups=PostNormalizedCheck.class) String zip
-
-
Method Detail
-
getStreet1
public String getStreet1()
-
setStreet1
public void setStreet1(String street1)
-
getStreet2
public String getStreet2()
-
setStreet2
public void setStreet2(String street2)
-
getCity
public String getCity()
-
setCity
public void setCity(String city)
-
getState
public String getState()
-
setState
public void setState(String state)
-
getZip
public String getZip()
-
setZip
public void setZip(String zip)
-
-