Class State.Builder
java.lang.Object
org.kuali.rice.location.api.state.State.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Coded,Versioned,ModelBuilder,StateContract
- Enclosing class:
- State
public static class State.Builder
extends Object
implements StateContract, ModelBuilder, Serializable
This builder constructs a State enforcing the constraints of the
StateContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static State.Builderstatic State.Builderstatic State.Buildercreate(StateContract contract) creates a Parameter from an existingStateContract.getCode()This the postal country code for the State.getName()This the postal name for the State.The name of the state according to StateCodeDataTypeV3 in UniversalCodes-V2.0.xsdbooleanisActive()voidsetActive(boolean active) voidvoidsetCountryCode(String countryCode) voidvoidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
create
creates a Parameter from an existingStateContract. -
getCode
-
setCode
-
getName
Description copied from interface:StateContractThis the postal name for the State. This cannot be null or a blank string.- Specified by:
getNamein interfaceStateContract- Returns:
- postal name
-
setName
-
getNameV3
Description copied from interface:StateContractThe name of the state according to StateCodeDataTypeV3 in UniversalCodes-V2.0.xsd- Specified by:
getNameV3in interfaceStateContract- Returns:
- V3 postal name
-
setNameV3
-
getCountryCode
Description copied from interface:StateContractThis the postal country code for the State. This cannot be null or a blank string.- Specified by:
getCountryCodein interfaceStateContract- Returns:
- postal country code
-
setCountryCode
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setVersionNumber
-
build
- Specified by:
buildin interfaceModelBuilder
-