|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.rice.shareddata.api.county.County.Builder
public static class County.Builder
This builder constructs an County enforcing the constraints of the CountyContract
.
Method Summary | |
---|---|
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()
This the county code for the County. |
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()
This the object version number for County. |
boolean |
isActive()
This the active flag for the County. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static County.Builder create(String code, String name, String countryCode, String stateCode)
public static County.Builder create(CountyContract contract)
CountyContract
.
public String getCode()
CountyContract
getCode
in interface CountyContract
public void setCode(String code)
code
- String code for a County
IllegalArgumentException
- if the passed in code is null or a blank String.public String getName()
CountyContract
getName
in interface CountyContract
public void setName(String name)
name
- String representing the full name for the County
IllegalArgumentException
- if the passed in name is null or a blank String.public String getCountryCode()
CountyContract
getCountryCode
in interface CountyContract
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()
CountyContract
getStateCode
in interface CountyContract
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 boolean isActive()
CountyContract
isActive
in interface CountyContract
public void setActive(boolean active)
active
- public Long getVersionNumber()
CountyContract
getVersionNumber
in interface CountyContract
public void setVersionNumber(Long versionNumber)
public County build()
build
in interface org.kuali.rice.core.api.mo.ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |