edu.iastate.anthill.indus.datasource.type
Class DataType

java.lang.Object
  extended byedu.iastate.anthill.indus.datasource.type.DataType
All Implemented Interfaces:
Configable
Direct Known Subclasses:
Graph, SimpleDataType

public abstract class DataType
extends java.lang.Object
implements Configable

Since:
1.0 2004-10-28
Author:
Jie Bao

Field Summary
static java.lang.String DEFAULT_TYPES
           
 boolean modified
           
(package private)  java.lang.String name
           
 boolean readOnly
           
(package private)  java.lang.String supertype
           
 
Constructor Summary
DataType()
           
 
Method Summary
abstract  javax.swing.JPanel getEditor()
           
abstract  java.lang.String getInformation()
           
 java.lang.String getName()
           
static java.lang.String[] getPredefinedTypes()
          Return all predefined types in list
 java.lang.String getSupertype()
           
static boolean isLegalName(java.lang.String name)
           
static boolean isNumber(java.lang.String type, java.lang.String supertype)
           
static boolean isPredefinedType(java.lang.String typName)
          To judge if a type if a predefined type
static boolean isString(java.lang.String type, java.lang.String supertype)
           
static java.lang.String parseSupertype(java.lang.String datatypeinXML)
          Find the supertype of the type XML
abstract  java.lang.String print()
           
 void setName(java.lang.String typeName)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.iastate.anthill.indus.datasource.Configable
fromXML, toXML
 

Field Detail

modified

public boolean modified

readOnly

public boolean readOnly

DEFAULT_TYPES

public static final java.lang.String DEFAULT_TYPES
See Also:
Constant Field Values

name

java.lang.String name

supertype

java.lang.String supertype
Constructor Detail

DataType

public DataType()
Method Detail

isLegalName

public static boolean isLegalName(java.lang.String name)

isString

public static boolean isString(java.lang.String type,
                               java.lang.String supertype)
Parameters:
supertype - String
Returns:
boolean
Since:
2004-10-15

getPredefinedTypes

public static java.lang.String[] getPredefinedTypes()
Return all predefined types in list

Returns:
Stirng[]
Since:
2004-10-29

isNumber

public static boolean isNumber(java.lang.String type,
                               java.lang.String supertype)
Parameters:
supertype - String
Returns:
boolean
Since:
2004-10-15

getSupertype

public java.lang.String getSupertype()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String typeName)

isPredefinedType

public static boolean isPredefinedType(java.lang.String typName)
To judge if a type if a predefined type

Parameters:
typName - String
Returns:
boolean
Since:
2004-10-07

parseSupertype

public static java.lang.String parseSupertype(java.lang.String datatypeinXML)
Find the supertype of the type XML

Parameters:
datatypeinXML - String
Returns:
String - get the super type
Since:
2004-10-15

getEditor

public abstract javax.swing.JPanel getEditor()

print

public abstract java.lang.String print()

toString

public abstract java.lang.String toString()
Specified by:
toString in interface Configable

getInformation

public abstract java.lang.String getInformation()