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()
Coded
public void setCode(String code)
code
- String code for the PostalCodeIllegalArgumentException
- 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 CityIllegalArgumentException
- 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 CodeIllegalArgumentException
- 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 codeIllegalArgumentException
- 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 codeIllegalArgumentException
- 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
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.