Class State
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.location.api.state.State
- All Implemented Interfaces:
Serializable,Inactivatable,Coded,Versioned,ModelObjectBasic,ModelObjectComplete,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
-
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 interfaceInactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-