public class IwirReader extends AbstractFormatFilter implements TaskGraphImporterInterface
| Constructor and Description |
|---|
IwirReader()
Instantiates a new iwir reader.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.filechooser.FileFilter[] |
getChoosableFileFilters()
Gets the list of choosable file filters.
|
javax.swing.filechooser.FileFilter |
getDefaultFileFilter()
Returns the default choosable file filter.
|
java.lang.String |
getFilterDescription()
Short description of the filter that will appear as the selection item in the list of filters.
|
boolean |
hasOptions()
Returns true if this filter has user configurable options, false otherwise.
|
TaskGraph |
importWorkflow(java.io.File file,
TrianaProperties properties)
Translates and returns the
TaskGraph from the file choosen by the user. |
int |
showOptionsDialog(java.awt.Component parent)
Pops up a the options dialog for this filter if there is one
|
java.lang.String |
toString()
Overrides the default
toString method to return the filter description |
public java.lang.String getFilterDescription()
AbstractFormatFiltergetFilterDescription in class AbstractFormatFilterpublic javax.swing.filechooser.FileFilter[] getChoosableFileFilters()
AbstractFormatFiltergetChoosableFileFilters in class AbstractFormatFilterFileFilter array containing all choosable file filters.public javax.swing.filechooser.FileFilter getDefaultFileFilter()
AbstractFormatFiltergetDefaultFileFilter in class AbstractFormatFilterpublic boolean hasOptions()
AbstractFormatFilterhasOptions in class AbstractFormatFilterpublic int showOptionsDialog(java.awt.Component parent)
AbstractFormatFiltershowOptionsDialog in class AbstractFormatFilterparent - the parent component of the dialog, can be null; see showDialog for
detailsGraphicsEnvironment.isHeadless()public java.lang.String toString()
AbstractFormatFiltertoString method to return the filter descriptiontoString in class AbstractFormatFilterpublic TaskGraph importWorkflow(java.io.File file, TrianaProperties properties) throws TaskGraphException, java.io.IOException
TaskGraphImporterInterfaceTaskGraph from the file choosen by the user.importWorkflow in interface TaskGraphImporterInterfaceTaskGraphException - thrown if the taskgraph or workflow format is invalid or unparsable, non matching
brackets for example.java.io.IOException - thrown if there is a file IO problem.