| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.location.api.county.County.Builder
public static class County.Builder
This builder constructs an County enforcing the constraints of the CountyContract.
| 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 | 
| 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 Codedpublic 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 CountyContractpublic 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 CountyContractpublic void setCountryCode(String countryCode)
countryCode - String representing the Country Code
IllegalArgumentException - if the passed in countryCode is null or a blank String.CountryContractpublic String getStateCode()
CountyContract
getStateCode in interface CountyContractpublic void setStateCode(String stateCode)
stateCode - String representing the State code
IllegalArgumentException - if the passed in statecode is null or a blank String.StateContractpublic boolean isActive()
Inactivatable
isActive in interface Inactivatablepublic void setActive(boolean active)
active - public Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic 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 | |||||||||