|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.shareddata.api.county.County.Builder
public static class County.Builder
This builder constructs an County enforcing the constraints of the CountyContract
.
Field Summary | |
---|---|
private boolean |
active
|
private String |
code
|
private String |
countryCode
|
private String |
name
|
private static long |
serialVersionUID
|
private String |
stateCode
|
private Long |
versionNumber
|
Constructor Summary | |
---|---|
private |
County.Builder(String code,
String name,
String countryCode,
String stateCode)
|
Method Summary | |
---|---|
County |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
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()
The code value for this object. |
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()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
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 |
Field Detail |
---|
private static final long serialVersionUID
private String code
private String name
private String countryCode
private String stateCode
private boolean active
private Long versionNumber
Constructor Detail |
---|
private County.Builder(String code, String name, String countryCode, String stateCode)
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()
Coded
getCode
in interface Coded
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()
ImmutableInactivatable
isActive
in interface ImmutableInactivatable
public void setActive(boolean active)
active
- public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public County build()
ModelBuilder
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |