public static class County.Builder extends Object implements CountyContract, ModelBuilder, Serializable
CountyContract
.Modifier and Type | Method and Description |
---|---|
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) |
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
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()
CountyContract
getName
in interface CountyContract
public 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()
CountyContract
getCountryCode
in interface CountyContract
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()
CountyContract
getStateCode
in interface CountyContract
public void setStateCode(String stateCode)
stateCode
- String representing the State codeIllegalArgumentException
- if the passed in statecode is null or a blank String.StateContract
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
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
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.