com.topcoder.shared.problem
Class DataTypeFactory

java.lang.Object
  |
  +--com.topcoder.shared.problem.DataTypeFactory

public class DataTypeFactory
extends java.lang.Object

This class implements a global database of known data types. Ideally it would be populated at some appropriate initialization time with the set of valid data types. Construction of any new DataType adds to the data type population.

Author:
Logan Hanks
See Also:
DataType

Constructor Summary
DataTypeFactory()
           
 
Method Summary
static DataType getDataType(int typeID)
           
static DataType getDataType(java.lang.String description)
          Obtain a DataType object with the given description.
static java.util.Collection getDataTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeFactory

public DataTypeFactory()
Method Detail

getDataType

public static DataType getDataType(java.lang.String description)
                            throws InvalidTypeException
Obtain a DataType object with the given description.

Parameters:
description - A type description (e.g. "String[]")
Throws:
InvalidTypeException

getDataType

public static DataType getDataType(int typeID)
                            throws InvalidTypeException
InvalidTypeException

getDataTypes

public static java.util.Collection getDataTypes()