rdr.core
Class Type

java.lang.Object
  extended by rdr.core.Type
All Implemented Interfaces:
java.io.Serializable

public class Type
extends java.lang.Object
implements java.io.Serializable

A simple type class i.e. NOMINAL, NUMERIC, BOOLEAN, DATE etc.

Author:
Ivan Bindoff
See Also:
Serialized Form

Field Summary
static int NUM_TYPES
           
 
Constructor Summary
Type()
          Construct a type with a default type code
Type(int ty)
          Construct a Type
 
Method Summary
 int getType()
          Get the type code
 java.lang.String getTypeName()
          Get the type "name" i.e.
 void setType(int ty)
          Set the type code
 java.lang.String toString()
          Convert the type to readable text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUM_TYPES

public static final int NUM_TYPES
See Also:
Constant Field Values
Constructor Detail

Type

public Type(int ty)
Construct a Type

Parameters:
ty - the type code

Type

public Type()
Construct a type with a default type code

Method Detail

getType

public int getType()
Get the type code

Returns:
the type code

getTypeName

public java.lang.String getTypeName()
Get the type "name" i.e. "NOMINAL"

Returns:
the type name

setType

public void setType(int ty)
Set the type code

Parameters:
ty - the type code

toString

public java.lang.String toString()
Convert the type to readable text.

Overrides:
toString in class java.lang.Object