Class PostalCode
java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.location.api.postalcode.PostalCode
- 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,PostalCodeContract
public final class PostalCode
extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
implements PostalCodeContract
An immutable representation of a
PostalCodeContract.
To construct an instance of a PostalCode, use the PostalCode.Builder class.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis builder constructs a PostalCode enforcing the constraints of thePostalCodeContract.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
-
getCityName
This the postal state code for the PostalCode. This can be null.- Specified by:
getCityNamein interfacePostalCodeContract- Returns:
- postal state code
-
getCountryCode
This the postal country code for the PostalCode. This cannot be null or a blank string.- Specified by:
getCountryCodein interfacePostalCodeContract- Returns:
- postal country code
-
getStateCode
This the postal state code for the PostalCode. This can be null.- Specified by:
getStateCodein interfacePostalCodeContract- Returns:
- postal state code
-
getCountyCode
This the county code for the PostalCode. This cannot be null.- Specified by:
getCountyCodein interfacePostalCodeContract- Returns:
- postal state 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
-