apollo.dataadapter
Class DataInputType

java.lang.Object
  extended by apollo.dataadapter.DataInputType

public class DataInputType
extends java.lang.Object

A value class for the different types of Data input


Nested Class Summary
static class DataInputType.UnknownTypeException
           
 
Field Summary
static DataInputType BASEPAIR_RANGE
           
static DataInputType CONTIG
           
static DataInputType CYTOLOGY
           
static DataInputType DIR
           
static DataInputType FILE
           
static DataInputType GENE
           
static DataInputType MRNA
           
static DataInputType SCAFFOLD
           
static DataInputType SEQUENCE
           
static DataInputType URL
           
 
Method Summary
static DataInputType getDataTypeForSoType(java.lang.String soType)
          This is an attempt to correlate SO terms with DataInputType.
 java.lang.String getSoType()
           
static java.lang.String[] getTypeStrings()
           
 boolean isLocation()
           
static DataInputType stringToType(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENE

public static DataInputType GENE

MRNA

public static DataInputType MRNA

CYTOLOGY

public static DataInputType CYTOLOGY

SCAFFOLD

public static DataInputType SCAFFOLD

FILE

public static DataInputType FILE

URL

public static DataInputType URL

SEQUENCE

public static DataInputType SEQUENCE

BASEPAIR_RANGE

public static DataInputType BASEPAIR_RANGE

CONTIG

public static DataInputType CONTIG

DIR

public static DataInputType DIR
Method Detail

getDataTypeForSoType

public static DataInputType getDataTypeForSoType(java.lang.String soType)
This is an attempt to correlate SO terms with DataInputType. The 2 should work hand in hand, until all adapters are using SO, then we can scrap DataInputType for SO. Only handles chromosome at the moment. This should be derived from SO, or at least configured, hardwiring for now


getSoType

public java.lang.String getSoType()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

stringToType

public static DataInputType stringToType(java.lang.String s)
                                  throws DataInputType.UnknownTypeException
Throws:
DataInputType.UnknownTypeException

isLocation

public boolean isLocation()

getTypeStrings

public static java.lang.String[] getTypeStrings()