phenote.dataadapter
Class AbstractFileAdapter
java.lang.Object
phenote.dataadapter.AbstractFileAdapter
- All Implemented Interfaces:
- DataAdapterI
- Direct Known Subclasses:
- AnnotationOBOFileAdapter, AnnotationOWLFileAdapter, DelimitedFileAdapter, NEXUSAdapter, PhenoSyntaxFileAdapter, PhenoXmlAdapter
public abstract class AbstractFileAdapter
- extends java.lang.Object
- implements DataAdapterI
|
Field Summary |
protected java.io.File |
file
|
|
Constructor Summary |
protected |
AbstractFileAdapter(java.lang.String[] exts,
java.lang.String description)
|
|
Method Summary |
java.lang.String |
getDescription()
|
java.util.List<java.lang.String> |
getExtensions()
|
boolean |
hasExtension(java.lang.String ext)
should both be in DataAdapterI convenience and in an AbstactDataAdapter? |
void |
setAdapterValue(java.lang.String filename)
Set value to use for loading or writeback, for a file adapter this would be
the file name - is there a better name for this method?
For now just doing String - which may be sufficient - may need an
AdapterValue/DataInput object if this gets more involved - but that may
not be necasary - certianly string ok for now
rename setFilename??? |
protected void |
setDescription(java.lang.String d)
|
protected void |
setExtensions(java.lang.String[] exts)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
protected java.io.File file
AbstractFileAdapter
protected AbstractFileAdapter(java.lang.String[] exts,
java.lang.String description)
setAdapterValue
public void setAdapterValue(java.lang.String filename)
- Set value to use for loading or writeback, for a file adapter this would be
the file name - is there a better name for this method?
For now just doing String - which may be sufficient - may need an
AdapterValue/DataInput object if this gets more involved - but that may
not be necasary - certianly string ok for now
rename setFilename???
- Specified by:
setAdapterValue in interface DataAdapterI
setExtensions
protected void setExtensions(java.lang.String[] exts)
getExtensions
public java.util.List<java.lang.String> getExtensions()
- Specified by:
getExtensions in interface DataAdapterI
hasExtension
public boolean hasExtension(java.lang.String ext)
- should both be in DataAdapterI convenience and in an AbstactDataAdapter?
- Specified by:
hasExtension in interface DataAdapterI
setDescription
protected void setDescription(java.lang.String d)
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface DataAdapterI