Class State
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.location.api.state.State
- 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.ModelObjectBasic,org.kuali.rice.core.api.mo.ModelObjectComplete,StateContract
public final class State
extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
implements StateContract
POJO implementation of StateContract that is immutable. Instances of State can be (un)marshalled to and from XML.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis builder constructs a State enforcing the constraints of theStateContract.static class -
Method Summary
Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
-
Method Details
-
getCode
- Specified by:
getCodein interfaceorg.kuali.rice.core.api.mo.common.Coded
-
getName
This the postal name for the State. This cannot be null or a blank string.- Specified by:
getNamein interfaceStateContract- Returns:
- postal name
-
getNameV3
The name of the state according to StateCodeDataTypeV3 in UniversalCodes-V2.0.xsd- Specified by:
getNameV3in interfaceStateContract- Returns:
- V3 postal name
-
getCountryCode
This the postal country code for the State. This cannot be null or a blank string.- Specified by:
getCountryCodein interfaceStateContract- Returns:
- postal country code
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-