Class State.Builder

java.lang.Object
org.kuali.rice.location.api.state.State.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.Coded, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, StateContract
Enclosing class:
State

public static class State.Builder extends Object implements StateContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder constructs a State enforcing the constraints of the StateContract.
See Also:
  • Method Details

    • create

      public static State.Builder create(String code, String name, String countryCode)
    • create

      public static State.Builder create(String code, String name, String nameV3, String countryCode)
    • create

      public static State.Builder create(StateContract contract)
      creates a Parameter from an existing StateContract.
    • getCode

      public String getCode()
      Specified by:
      getCode in interface org.kuali.rice.core.api.mo.common.Coded
    • setCode

      public void setCode(String code)
    • getName

      public String getName()
      Description copied from interface: StateContract
      This the postal name for the State. This cannot be null or a blank string.
      Specified by:
      getName in interface StateContract
      Returns:
      postal name
    • setName

      public void setName(String name)
    • getNameV3

      public String getNameV3()
      Description copied from interface: StateContract
      The name of the state according to StateCodeDataTypeV3 in UniversalCodes-V2.0.xsd
      Specified by:
      getNameV3 in interface StateContract
      Returns:
      V3 postal name
    • setNameV3

      public void setNameV3(String nameV3)
    • getCountryCode

      public String getCountryCode()
      Description copied from interface: StateContract
      This the postal country code for the State. This cannot be null or a blank string.
      Specified by:
      getCountryCode in interface StateContract
      Returns:
      postal country code
    • setCountryCode

      public void setCountryCode(String countryCode)
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setActive

      public void setActive(boolean active)
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • build

      public State build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder