|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.dataadapter.DataInput
public class DataInput
This lumps together DataInputType and getInput String in ApolloDataAdapterI. This deals with location strings, which lump together chrom, start and end At the moment its assumed location strings are of the ilk "chrom#:start-end" The other apollo location format of "Chr chrom# start end" needs to be dealt with at some point as well.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
DataInput(DataInputType inputType)
|
|
DataInput(DataInputType inputType,
java.lang.String inputString)
|
|
DataInput(java.lang.String inputString)
|
|
DataInput(java.lang.String soType,
java.lang.String inputString)
|
|
DataInput(java.lang.String chrom,
java.lang.String start,
java.lang.String end)
|
|
DataInput(java.lang.String chrom,
java.lang.String start,
java.lang.String end,
java.lang.String seqType)
Constructor for a location with Strings for chrom, start, & end & so type |
|
| Method Summary | |
|---|---|
java.lang.String |
getFilename()
|
java.lang.String |
getInputString()
|
Region |
getRegion()
|
java.lang.String |
getSeqId()
So for all input types except BASEPAIR_RANGE/regions the "seqId" is the input string itself. |
java.lang.String |
getSequenceFilename()
|
java.lang.String |
getSoType()
|
DataInputType |
getType()
|
boolean |
hasInput()
|
boolean |
hasSequenceFilename()
|
boolean |
isFile()
|
boolean |
isRegion()
Returns true if DataInputType is BASEPAIR_RANGE |
void |
makeDataTypeRegion()
|
void |
setInputString(java.lang.String inputString)
|
void |
setSequenceFilename(java.lang.String sequenceFilename)
|
void |
setSoType(java.lang.String soType)
|
void |
setType(DataInputType type)
|
void |
setTypeToFileOrUrl()
if file starts with http: then its really an url so correct the type this should only be used for types that are either file or url - none others file adapters in other words |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public DataInput(DataInputType inputType,
java.lang.String inputString)
public DataInput(java.lang.String soType,
java.lang.String inputString)
public DataInput(java.lang.String chrom,
java.lang.String start,
java.lang.String end)
public DataInput(java.lang.String chrom,
java.lang.String start,
java.lang.String end,
java.lang.String seqType)
public DataInput(DataInputType inputType)
public DataInput(java.lang.String inputString)
| Method Detail |
|---|
public void setTypeToFileOrUrl()
public DataInputType getType()
public java.lang.String getSoType()
public void setSoType(java.lang.String soType)
public java.lang.String getInputString()
public java.lang.String getSeqId()
public void setType(DataInputType type)
public void setInputString(java.lang.String inputString)
public boolean isFile()
public java.lang.String getFilename()
public boolean isRegion()
public void makeDataTypeRegion()
public Region getRegion()
public boolean hasInput()
public void setSequenceFilename(java.lang.String sequenceFilename)
public boolean hasSequenceFilename()
public java.lang.String getSequenceFilename()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||