com.jstatcom.project
Class ProjectDataTypes

java.lang.Object
  extended by com.jstatcom.project.ProjectDataTypes

public final class ProjectDataTypes
extends java.lang.Object

This enumeration contains all existing ProjectData types. If new data types are to be added, this class needs to be extended.

Author:
Markus Kraetzig

Field Summary
 java.lang.String NAME
           
static ProjectDataTypes TS_DATA
          Data type that is used to represent time series data.
 
Constructor Summary
ProjectDataTypes(java.lang.String name, java.lang.String description)
          Creates a data type instance with a name.
 
Method Summary
 java.lang.String toString()
          Gets string representation of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public final java.lang.String NAME

TS_DATA

public static final ProjectDataTypes TS_DATA
Data type that is used to represent time series data.

Constructor Detail

ProjectDataTypes

public ProjectDataTypes(java.lang.String name,
                        java.lang.String description)
Creates a data type instance with a name. A type with a certain name can only be created once.

Parameters:
name - identifier of this project data type
description - a description for this data type
Throws:
java.lang.IllegalStateException - if a type with the same name has already been created before
java.lang.IllegalArgumentException - if (name == null)
Method Detail

toString

public java.lang.String toString()
Gets string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string