|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bdgp.io.AbstractDataAdapter
apollo.dataadapter.AbstractApolloAdapter
apollo.dataadapter.chadoxml.ChadoXmlAdapter
public class ChadoXmlAdapter
A FlyBase-specific reader for Chado XML files. Currently handles only unmacroized Chado XML.
| Field Summary | |
|---|---|
static java.lang.String |
FIELD_LABEL
For labeling flat fields (which are stored as properties) so they can be written out properly. |
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
curation_set, region, style |
| Fields inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
listeners |
| Fields inherited from interface apollo.dataadapter.ApolloDataAdapterI |
|---|
OP_APPEND_DATA, OP_READ_DATA, OP_READ_RAW_ANALYSIS, OP_READ_SEQUENCE, OP_WRITE_DATA |
| Constructor Summary | |
|---|---|
ChadoXmlAdapter()
Must have empty constructor to work with org.bdgp.io.DataAdapterRegistry instance creation from config string |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
addToCurationSet()
Like getCurationSet--used for layering new data. |
boolean |
appearsToBeChadoXML(java.lang.String filename,
java.io.BufferedReader in)
Check whether the input appears to be chadoXML by looking for the |
void |
commitChanges(CurationSet curation)
Main method for writing ChadoXML file |
void |
commitChanges(CurationSet curation,
boolean saveAnnots,
boolean saveResults)
Main method for writing ChadoXML file |
CurationSet |
getCurationSet()
This is the main method for reading the data. |
CurationSet |
getCurationSetFromInputStream(java.io.InputStream xml_stream)
|
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? |
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. |
org.bdgp.io.IOOperation[] |
getSupportedOperations()
From org.bdgp.io.DataAdapter interface |
java.lang.String |
getType()
Used by GenericFileAdapterGUI |
org.bdgp.io.DataAdapterUI |
getUI(org.bdgp.io.IOOperation op)
From org.bdgp.io.VisualDataAdapter interface |
void |
setDataInput(DataInput dataInput)
This should replace setInput. |
void |
setInput(java.lang.String inputfile)
Input string that corresponds with the input type (eg gene name for gene input type) |
void |
setOriginalFilename(java.lang.String file)
Save original file name so that if we save the data we can access the header info from the original file; and also so we can save the file name as a comment. |
void |
setStateInformation(java.util.Properties props)
DataLoader calls this. |
| Methods inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
addProgressListener, fireProgressEvent, removeProgressListener, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.bdgp.io.VisualDataAdapter |
|---|
addProgressListener, fireProgressEvent, removeProgressListener |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
public static java.lang.String FIELD_LABEL
| Constructor Detail |
|---|
public ChadoXmlAdapter()
| Method Detail |
|---|
public org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
public org.bdgp.io.IOOperation[] getSupportedOperations()
public java.lang.String getType()
getType in interface org.bdgp.io.DataAdaptergetType in class AbstractApolloAdapterpublic void setInput(java.lang.String inputfile)
AbstractApolloAdapter
setInput in interface ApolloDataAdapterIsetInput in class AbstractApolloAdapterpublic java.lang.String getInput()
AbstractApolloAdapter
getInput in interface ApolloDataAdapterIgetInput in class AbstractApolloAdapterpublic void setDataInput(DataInput dataInput)
ApolloDataAdapterI
setDataInput in interface ApolloDataAdapterIsetDataInput in class AbstractApolloAdapterpublic void setOriginalFilename(java.lang.String file)
public CurationSet getCurationSet()
throws ApolloAdapterException
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterException
public CurationSet getCurationSetFromInputStream(java.io.InputStream xml_stream)
throws ApolloAdapterException
ApolloAdapterException
public java.lang.Boolean addToCurationSet()
throws ApolloAdapterException
addToCurationSet in interface ApolloDataAdapterIaddToCurationSet in class AbstractApolloAdapterApolloAdapterExceptionpublic void commitChanges(CurationSet curation)
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapter
public void commitChanges(CurationSet curation,
boolean saveAnnots,
boolean saveResults)
commitChanges in class AbstractApolloAdapter
public boolean appearsToBeChadoXML(java.lang.String filename,
java.io.BufferedReader in)
throws ApolloAdapterException
ApolloAdapterExceptionpublic java.util.Properties getStateInformation()
ApolloDataAdapterI
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapterpublic void setStateInformation(java.util.Properties props)
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||