com.cafesoft.core.field
Class FieldType

java.lang.Object
  |
  +--com.cafesoft.core.field.FieldType

public final class FieldType
extends Object

Type safe constant class that contains the various supported FieldTypes of data. Examples include STRING and INTEGER. This object type is used to describe the type of value contained within a given field.

Since:
7/18/03

Field Summary
static FieldType INTEGER
          INTEGER FieldType
static FieldType STRING
          STRING FieldType
 
Method Summary
 boolean equals(Object obj)
          Indicates whether FieldType objects are equal.
 String getName()
          Get the name associated with this FieldType.
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Get a String representation of FieldType.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INTEGER

public static final FieldType INTEGER
INTEGER FieldType


STRING

public static final FieldType STRING
STRING FieldType

Method Detail

getName

public String getName()
Get the name associated with this FieldType.

Returns:
the name associated with this FieldType.

toString

public String toString()
Get a String representation of FieldType.

Overrides:
toString in class Object
Returns:
a String representation of FieldType.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

equals

public boolean equals(Object obj)
Indicates whether FieldType objects are equal.

The equals method implements an equivalence relation:

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.