public static class State.Builder extends Object implements StateContract, ModelBuilder, Serializable
StateContract.| Modifier and Type | Method and Description | 
|---|---|
| State | build()Returns an instance of the object being built by this builder based
 on the current state of the builder. | 
| static State.Builder | create(StateContract contract)creates a Parameter from an existing  StateContract. | 
| static State.Builder | create(String code,
      String name,
      String countryCode)creates a State with the required fields. | 
| String | getCode()The code value for this object. | 
| String | getCountryCode()This the postal country code for the State. | 
| String | getName()This the postal name for the State. | 
| Long | getVersionNumber()Returns the version number for this object. | 
| boolean | isActive()The active indicator for an object. | 
| void | setActive(boolean active) | 
| void | setCode(String code)Sets the code to be used for the State created from this Builder. | 
| void | setCountryCode(String countryCode)Sets the Country code to be associated with the State created from this Builder. | 
| void | setName(String name)Sets the full name of the State created from this Builder. | 
| void | setVersionNumber(Long versionNumber) | 
public static State.Builder create(String code, String name, String countryCode)
code - represents code for the State being builtname - represents full name for the State being builtcountryCode - code for the Country this State is associated withpublic static State.Builder create(StateContract contract)
StateContract.public String getCode()
Codedpublic void setCode(String code)
code - String code for a State.IllegalArgumentException - if the passed in code is null or a blank String.public String getName()
StateContractgetName in interface StateContractpublic void setName(String name)
name - String representing the full name for the StateIllegalArgumentException - if the passed in name is null or a blank String.public String getCountryCode()
StateContractgetCountryCode in interface StateContractpublic void setCountryCode(String countryCode)
countryCode - String representing the Country CodeIllegalArgumentException - if the passed in countryCode is null or a blank String.public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public State build()
ModelBuilderbuild in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.