|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormNested 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 Coded
public String getName()
StateContract
getName
in interface StateContract
public String getCountryCode()
StateContract
getCountryCode
in interface StateContract
public boolean isActive()
ImmutableInactivatable
isActive
in interface ImmutableInactivatable
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public int hashCode()
ModelObjectComplete
ModelObjectComplete.hashCode()
contract.
hashCode
in interface ModelObjectComplete
hashCode
in class Object
public boolean equals(Object obj)
ModelObjectComplete
ModelObjectComplete.equals(Object)
contract.
equals
in interface ModelObjectComplete
equals
in class Object
obj
- to object to compare for equality
public String toString()
ModelObjectBasic
toString
in interface ModelObjectBasic
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |