|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataType
public abstract class AbstractDataType
Base implementation of a DataType.
| Field Summary | |
|---|---|
protected static int |
HASH_CODE_SEED
hash code seed |
private static long |
serialVersionUID
Serialization version marker |
private String |
typeCode
type code |
private String |
typeName
type name |
| Constructor Summary | |
|---|---|
AbstractDataType()
|
|
| Method Summary | |
|---|---|
int |
compareTo(DataType other)
|
boolean |
equals(Object o)
This returns whether the supplied object is equal to this object. |
protected static DataType |
getDataType(DataType[] dataTypes,
String typeCode)
This returns the data type in the supplied set for the supplied type code. |
String |
getTypeCode()
This returns the type code. |
String |
getTypeName()
This returns the type name. |
int |
hashCode()
This returns the hash code for this object. |
void |
setTypeCode(String s)
This sets the type code. |
void |
setTypeName(String s)
This sets the type name. |
String |
toString()
Returns a String representation of this data type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int HASH_CODE_SEED
private static final long serialVersionUID
private String typeCode
private String typeName
| Constructor Detail |
|---|
public AbstractDataType()
| Method Detail |
|---|
public String getTypeCode()
getTypeCode in interface DataTypeString - codepublic void setTypeCode(String s)
setTypeCode in interface DataTypes - String to setpublic String getTypeName()
getTypeName in interface DataTypeString - namepublic void setTypeName(String s)
setTypeName in interface DataTypes - String to setpublic int compareTo(DataType other)
compareTo in interface Comparable<DataType>
protected static DataType getDataType(DataType[] dataTypes,
String typeCode)
dataTypes - DataType[]typeCode - String
DataTypepublic boolean equals(Object o)
equals in class Objecto - Object
booleanpublic int hashCode()
hashCode in class Objectintpublic String toString()
toString in class ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||