|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.location.api.postalcode.PostalCode.Builder
public static class PostalCode.Builder
This builder constructs a PostalCode enforcing the constraints of the PostalCodeContract
.
Method Summary | |
---|---|
PostalCode |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static PostalCode.Builder |
create(PostalCodeContract contract)
creates a PostalCode builder from an existing PostalCodeContract . |
static PostalCode.Builder |
create(String code,
String countryCode)
creates a PostalCode builder with the required fields. |
String |
getCityName()
This the postal state code for the PostalCode. |
String |
getCode()
The code value for this object. |
String |
getCountryCode()
This the postal country code for the PostalCode. |
String |
getCountyCode()
This the county code for the PostalCode. |
String |
getStateCode()
This the postal state code for the PostalCode. |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
|
void |
setCityName(String cityName)
Sets the name of the city associated with the PostalCode to be created from this Builder. |
void |
setCode(String code)
Sets the code for the PostalCode created from this Builder. |
void |
setCountryCode(String countryCode)
Sets the Country code to be associated with the PostalCode created from this Builder. |
void |
setCountyCode(String countyCode)
Sets the County code to be associated with the PostalCode created from this Builder. |
void |
setStateCode(String stateCode)
Sets the State code to be associated with the PostalCode created from this Builder. |
void |
setVersionNumber(Long versionNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PostalCode.Builder create(String code, String countryCode)
public static PostalCode.Builder create(PostalCodeContract contract)
PostalCodeContract
.
public String getCode()
Coded
getCode
in interface Coded
public void setCode(String code)
code
- String code for the PostalCode
IllegalArgumentException
- if the passed in code is null or a blank String.public String getCityName()
PostalCodeContract
getCityName
in interface PostalCodeContract
public void setCityName(String cityName)
cityName
- String representing the name of the City
IllegalArgumentException
- if the passed in cityname is null or a blank String.public String getCountryCode()
PostalCodeContract
getCountryCode
in interface PostalCodeContract
public void setCountryCode(String countryCode)
countryCode
- String representing the Country Code
IllegalArgumentException
- if the passed in countryCode is null or a blank String.CountryContract
public String getStateCode()
PostalCodeContract
getStateCode
in interface PostalCodeContract
public void setStateCode(String stateCode)
stateCode
- String representing the State code
IllegalArgumentException
- if the passed in stateCode is null or a blank String.StateContract
public String getCountyCode()
PostalCodeContract
getCountyCode
in interface PostalCodeContract
public void setCountyCode(String countyCode)
countyCode
- String representing the County code
IllegalArgumentException
- if the passed in countyCode is null or a blank String.CountyContract
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public PostalCode build()
ModelBuilder
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |