| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.shareddata.api.state.State
public final class State
POJO implementation of CountryContract that is immutable. Instances of State can be (un)marshalled to and from XML.
StateContract, 
Serialized Form| Nested Class Summary | |
|---|---|
static class | 
State.Builder
This builder constructs a State enforcing the constraints of the StateContract. | 
(package private) static class | 
State.Constants
Defines some internal constants used on this class.  | 
(package private) static class | 
State.Elements
A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.  | 
| Field Summary | |
|---|---|
private  Collection<Element> | 
_futureElements
 | 
private  boolean | 
active
 | 
private  String | 
code
 | 
private  String | 
countryCode
 | 
private  String | 
name
 | 
private static long | 
serialVersionUID
 | 
private  Long | 
versionNumber
 | 
| Constructor Summary | |
|---|---|
private  | 
State()
This constructor should never be called except during JAXB unmarshalling.  | 
private  | 
State(State.Builder builder)
 | 
| Method Summary | |
|---|---|
 boolean | 
equals(Object obj)
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract. | 
 String | 
getCode()
The code value for this object.  | 
 String | 
getCountryCode()
This the postal country code for the State.  | 
 String | 
getName()
This the postal name for the State.  | 
 Long | 
getVersionNumber()
Returns the version number for this object.  | 
 int | 
hashCode()
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract. | 
 boolean | 
isActive()
The active indicator for an object.  | 
 String | 
toString()
This will return a proper string representation of the Model Object.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private static final long serialVersionUID
private final String code
private final String name
private final String countryCode
private final boolean active
private final Long versionNumber
private final Collection<Element> _futureElements
| Constructor Detail | 
|---|
private State()
private State(State.Builder builder)
| Method Detail | 
|---|
public String getCode()
Coded
getCode in interface Codedpublic String getName()
StateContract
getName in interface StateContractpublic String getCountryCode()
StateContract
getCountryCode in interface StateContractpublic boolean isActive()
ImmutableInactivatable
isActive in interface ImmutableInactivatablepublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic int hashCode()
ModelObjectCompleteModelObjectComplete.hashCode() contract.
hashCode in interface ModelObjectCompletehashCode in class Objectpublic boolean equals(Object obj)
ModelObjectCompleteModelObjectComplete.equals(Object) contract.
equals in interface ModelObjectCompleteequals in class Objectobj - to object to compare for equality
public String toString()
ModelObjectBasic
toString in interface ModelObjectBasictoString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||