public static class PostalCode.Builder extends Object implements PostalCodeContract, ModelBuilder, Serializable
PostalCodeContract.| Modifier and Type | Method and Description |
|---|---|
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) |
public static PostalCode.Builder create(String code, String countryCode)
public static PostalCode.Builder create(PostalCodeContract contract)
PostalCodeContract.public String getCode()
Codedpublic void setCode(String code)
code - String code for the PostalCodeIllegalArgumentException - if the passed in code is null or a blank String.public String getCityName()
PostalCodeContractgetCityName in interface PostalCodeContractpublic void setCityName(String cityName)
cityName - String representing the name of the CityIllegalArgumentException - if the passed in cityname is null or a blank String.public String getCountryCode()
PostalCodeContractgetCountryCode in interface PostalCodeContractpublic void setCountryCode(String countryCode)
countryCode - String representing the Country CodeIllegalArgumentException - if the passed in countryCode is null or a blank String.CountryContractpublic String getStateCode()
PostalCodeContractgetStateCode in interface PostalCodeContractpublic void setStateCode(String stateCode)
stateCode - String representing the State codeIllegalArgumentException - if the passed in stateCode is null or a blank String.StateContractpublic String getCountyCode()
PostalCodeContractgetCountyCode in interface PostalCodeContractpublic void setCountyCode(String countyCode)
countyCode - String representing the County codeIllegalArgumentException - if the passed in countyCode is null or a blank String.CountyContractpublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public PostalCode build()
ModelBuilderbuild in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.