public static class County.Builder extends Object implements CountyContract, ModelBuilder, Serializable
CountyContract.| Modifier and Type | Method and Description |
|---|---|
County |
build() |
static County.Builder |
create(CountyContract contract)
creates a County Builder from an existing
CountyContract. |
static County.Builder |
create(String code,
String name,
String countryCode,
String stateCode)
creates a County Builder with the required fields.
|
String |
getCode() |
String |
getCountryCode()
This the postal country code for the County.
|
String |
getName()
This the name for the County.
|
String |
getStateCode()
This the postal state code for the County.
|
Long |
getVersionNumber() |
boolean |
isActive() |
void |
setActive(boolean active)
Sets the active flag for the County created from this Builder.
|
void |
setCode(String code)
Sets the code to be used for the County created from this Builder.
|
void |
setCountryCode(String countryCode)
Sets the Country code to be associated with the County created from this Builder.
|
void |
setName(String name)
Sets the full name of the County created from this Builder.
|
void |
setStateCode(String stateCode)
Sets the State code to be associated with the County created from this Builder.
|
void |
setVersionNumber(Long versionNumber) |
public static County.Builder create(String code, String name, String countryCode, String stateCode)
public static County.Builder create(CountyContract contract)
CountyContract.public void setCode(String code)
code - String code for a CountyIllegalArgumentException - if the passed in code is null or a blank String.public String getName()
CountyContractgetName in interface CountyContractpublic void setName(String name)
name - String representing the full name for the CountyIllegalArgumentException - if the passed in name is null or a blank String.public String getCountryCode()
CountyContractgetCountryCode in interface CountyContractpublic void setCountryCode(String countryCode)
countryCode - String representing the Country CodeIllegalArgumentException - if the passed in countryCode is null or a blank String.CountryContractpublic String getStateCode()
CountyContractgetStateCode in interface CountyContractpublic void setStateCode(String stateCode)
stateCode - String representing the State codeIllegalArgumentException - if the passed in statecode is null or a blank String.StateContractpublic boolean isActive()
isActive in interface Inactivatablepublic void setActive(boolean active)
active - public Long getVersionNumber()
getVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public County build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.