|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ApolloDataAdapterI
DataAdapterI interface Used to load annotated and non-annotated data from whatever datasource Could this implement org.bdgp.io.VisualDataAdapter or are there apollo adapters with no UI?
| Field Summary | |
|---|---|
static org.bdgp.io.IOOperation |
OP_APPEND_DATA
|
static org.bdgp.io.IOOperation |
OP_READ_DATA
|
static org.bdgp.io.IOOperation |
OP_READ_RAW_ANALYSIS
|
static org.bdgp.io.IOOperation |
OP_READ_SEQUENCE
|
static org.bdgp.io.IOOperation |
OP_WRITE_DATA
|
| Method Summary | |
|---|---|
java.lang.Boolean |
addToCurationSet()
|
boolean |
canWriteData()
Whether write operation is supported by data adapter |
void |
commitChanges(CompositeDataHolder cdh)
Write out composite data holder to multiple data adapters (only SyntenyAdapter actually implements this) |
void |
commitChanges(CurationSet curationSet)
writes the changes from a featureChangeLog to a writeable datasource. |
void |
commitChanges(java.lang.Object values)
Straight from DataAdapterGUI.doOp. |
void |
commitChanges(java.lang.Object values,
boolean saveAnnots,
boolean saveResults)
GAMEAdapter and ChadoXMLAdapter can specify whether to save annots and whether to save results |
java.util.Map |
getAdapters()
|
ApolloDataAdapterI |
getChildAdapter(int i)
Returns ith child adapter if isComposite(), null otherwise |
ApolloDataAdapterI |
getChildAdapter(java.lang.String adapterName)
if isComposite() then returns child adapter for string adapterName. |
CurationSet |
getCurationSet()
returns a saved CurationSet. |
CurationState |
getCurationState()
Get CurationState associated with data adapter. |
java.lang.String |
getInput()
Returns the input String passed to the DataAdapter, the input is of course associated with the input type Should this go into org.bdgp.io.DataAdapter? |
DataInputType |
getInputType()
Returns the type of input data (gene,file,band...) I believe this is now contained in the DataInput object, so this should probably be phased out eventually |
int |
getNumberOfChildAdapters()
Returns number of child adapters. |
java.lang.String |
getRawAnalysisResults(java.lang.String id)
|
SequenceI |
getSequence(DbXref dbxref)
|
SequenceI |
getSequence(DbXref dbxref,
int start,
int end)
|
SequenceI |
getSequence(java.lang.String id)
Strings for input types |
java.util.Vector |
getSequences(DbXref[] dbxref)
|
java.util.Vector |
getSequences(DbXref[] dbxref,
int[] start,
int[] end)
|
java.lang.String |
getSpecies()
Synteny gives a species to each adapter to help keep track of them |
java.util.Properties |
getStateInformation()
State info Properties carries all the info needed for the adapter to do its query This is an alternative to setDataInput. |
Style |
getStyle()
Return style associated with data adapter - at the moment synteny overrides all its child adapters with its own style - this may change in the future |
boolean |
hasLinkData()
Whether data adapter contains link data used for synteny (e.g. |
boolean |
isComposite()
returns true if the data adapter holds species adapters. |
void |
loadNewSpeciesFromLink(SeqFeatureI link,
CompositeDataHolder cdh)
Bring up the link as a species in synteny. |
boolean |
rollbackAnnotations(CompositeDataHolder cdh)
Send any necessary signals to the server to release annotation locks or undo edits --after the user has been prompted that these will be lost. |
void |
setCuration(CurationSet curation)
|
void |
setDatabase(java.lang.String database)
Presently only game adapter uses this |
void |
setDataInput(DataInput dataInput)
This should replace setInput. |
void |
setDataLoadListener(DataLoadListener l)
Controller should be in apollo.controller package not gui |
void |
setInput(java.lang.String input)
Input string that corresponds with the input type (eg gene name for gene input type) setDataInput is the better way to go. |
void |
setInputType(DataInputType type)
DataInputType describes the type of input (gene,cytology,scaffold...) DataInput contains a DataInputType, so setDataInput covers this. |
void |
setPadLeft(int padLeft)
Request to "pad" the input padLeft basepairs to the left(5' forward strand) |
void |
setPadRight(int padRight)
Request to "pad" the input padRight basepairs to the right(3' forward strand) |
void |
setRegion(java.lang.String extId)
Deprecated. use setDataInput(DataInput) |
void |
setStateInformation(java.util.Properties props)
This should set StateInformation object! see StateInformation for Strings to use for keys. |
void |
setStyle(Style style)
By default a data adapter uses the style listed with it in the config file. |
| Methods inherited from interface org.bdgp.io.VisualDataAdapter |
|---|
addProgressListener, fireProgressEvent, getUI, removeProgressListener |
| Methods inherited from interface org.bdgp.io.DataAdapter |
|---|
getName, getSupportedOperations, getType, init |
| Field Detail |
|---|
static final org.bdgp.io.IOOperation OP_READ_DATA
static final org.bdgp.io.IOOperation OP_WRITE_DATA
static final org.bdgp.io.IOOperation OP_READ_SEQUENCE
static final org.bdgp.io.IOOperation OP_READ_RAW_ANALYSIS
static final org.bdgp.io.IOOperation OP_APPEND_DATA
| Method Detail |
|---|
CurationSet getCurationSet()
throws ApolloAdapterException
ApolloAdapterException
void setCuration(CurationSet curation)
throws ApolloAdapterException
ApolloAdapterException
java.lang.Boolean addToCurationSet()
throws ApolloAdapterException
ApolloAdapterException
void commitChanges(CurationSet curationSet)
throws ApolloAdapterException
ApolloAdapterException
void commitChanges(CompositeDataHolder cdh)
throws ApolloAdapterException
ApolloAdapterException
void commitChanges(java.lang.Object values)
throws ApolloAdapterException
ApolloAdapterException
void commitChanges(java.lang.Object values,
boolean saveAnnots,
boolean saveResults)
throws ApolloAdapterException
ApolloAdapterExceptionvoid setDataInput(DataInput dataInput)
DataInputType getInputType()
Should this go into org.bdgp.io.DataAdapter?java.lang.String getInput()
void setInputType(DataInputType type)
void setInput(java.lang.String input)
java.util.Properties getStateInformation()
void setStateInformation(java.util.Properties props)
void setRegion(java.lang.String extId)
throws ApolloAdapterException
ApolloAdapterException
SequenceI getSequence(java.lang.String id)
throws ApolloAdapterException
ApolloAdapterException
SequenceI getSequence(DbXref dbxref)
throws ApolloAdapterException
ApolloAdapterException
SequenceI getSequence(DbXref dbxref,
int start,
int end)
throws ApolloAdapterException
ApolloAdapterException
java.util.Vector getSequences(DbXref[] dbxref)
throws ApolloAdapterException
ApolloAdapterException
java.util.Vector getSequences(DbXref[] dbxref,
int[] start,
int[] end)
throws ApolloAdapterException
ApolloAdapterException
java.lang.String getRawAnalysisResults(java.lang.String id)
throws ApolloAdapterException
ApolloAdapterExceptionboolean rollbackAnnotations(CompositeDataHolder cdh)
void loadNewSpeciesFromLink(SeqFeatureI link,
CompositeDataHolder cdh)
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterExceptionjava.lang.String getSpecies()
void setDatabase(java.lang.String database)
void setPadLeft(int padLeft)
void setPadRight(int padRight)
void setStyle(Style style)
Style getStyle()
boolean isComposite()
ApolloDataAdapterI getChildAdapter(java.lang.String adapterName)
ApolloDataAdapterI getChildAdapter(int i)
int getNumberOfChildAdapters()
java.util.Map getAdapters()
boolean canWriteData()
boolean hasLinkData()
void setDataLoadListener(DataLoadListener l)
CurationState getCurationState()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||