project35.mda.model
Class FieldDataType

java.lang.Object
  extended by project35.mda.model.FieldDataType
All Implemented Interfaces:
java.io.Serializable

public final class FieldDataType
extends java.lang.Object
implements java.io.Serializable

An enumerator class used to describe the type of a field.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
static FieldDataType DATE_FIELD
           
static FieldDataType DOUBLE_FIELD
           
static FieldDataType FLOAT_FIELD
           
static FieldDataType INTEGER_FIELD
           
static FieldDataType LIST_FIELD
           
static FieldDataType STRING_FIELD
           
 
Method Summary
 boolean equals(java.lang.Object o)
          overriding the equals method.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FLOAT_FIELD

public static final FieldDataType FLOAT_FIELD

DOUBLE_FIELD

public static final FieldDataType DOUBLE_FIELD

INTEGER_FIELD

public static final FieldDataType INTEGER_FIELD

DATE_FIELD

public static final FieldDataType DATE_FIELD

STRING_FIELD

public static final FieldDataType STRING_FIELD

LIST_FIELD

public static final FieldDataType LIST_FIELD
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
overriding the equals method. I'm fairly certain that far in the past, when two field data types were compared, they were always unequal because the object pointers were different. It was modified so that it compared names

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object