org.kuali.rice.shareddata.api.county
Class County

java.lang.Object
  extended by org.kuali.rice.shareddata.api.county.County
All Implemented Interfaces:
Serializable, Inactivatable, Coded, Versioned, ModelObjectBasic, ModelObjectComplete, CountyContract

public final class County
extends Object
implements CountyContract, ModelObjectComplete

An immutable representation of a CountyContract.

To construct an instance of a County, use the County.Builder class.

See Also:
CountyContract, Serialized Form

Nested Class Summary
static class County.Builder
          This builder constructs an County enforcing the constraints of the CountyContract.
(package private) static class County.Constants
          Defines some internal constants used on this class.
(package private) static class County.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  String stateCode
           
private  Long versionNumber
           
 
Constructor Summary
private County()
          This constructor should never be called except during JAXB unmarshalling.
private County(County.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 County.
 String getName()
          This the name for the County.
 String getStateCode()
          This the postal state code for the County.
 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

code

private final String code

name

private final String name

countryCode

private final String countryCode

stateCode

private final String stateCode

active

private final boolean active

versionNumber

private final Long versionNumber

_futureElements

private final Collection<Element> _futureElements
Constructor Detail

County

private County()
This constructor should never be called except during JAXB unmarshalling.


County

private County(County.Builder builder)
Method Detail

getCode

public String getCode()
Description copied from interface: Coded
The code value for this object. In general a code value cannot be null or a blank string.

Specified by:
getCode in interface Coded
Returns:
the code value for this object.

getName

public String getName()
Description copied from interface: CountyContract
This the name for the County. This cannot be null or a blank string.

Specified by:
getName in interface CountyContract
Returns:
name

getCountryCode

public String getCountryCode()
Description copied from interface: CountyContract
This the postal country code for the County. This cannot be null or a blank string.

Specified by:
getCountryCode in interface CountyContract
Returns:
postal country code

getStateCode

public String getStateCode()
Description copied from interface: CountyContract
This the postal state code for the County. This cannot be null or a blank string.

Specified by:
getStateCode in interface CountyContract
Returns:
postal state code

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

hashCode

public int hashCode()
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.

Specified by:
hashCode in interface ModelObjectComplete
Overrides:
hashCode in class Object
Returns:
the hashCode value

equals

public boolean equals(Object obj)
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.

Specified by:
equals in interface ModelObjectComplete
Overrides:
equals in class Object
Parameters:
obj - to object to compare for equality
Returns:
if equal

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Overrides:
toString in class Object
Returns:
the string representation


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.