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()
AbstractFormatFilter
getFilterDescription
in class AbstractFormatFilter
public javax.swing.filechooser.FileFilter[] getChoosableFileFilters()
AbstractFormatFilter
getChoosableFileFilters
in class AbstractFormatFilter
FileFilter
array containing all choosable file filters.public javax.swing.filechooser.FileFilter getDefaultFileFilter()
AbstractFormatFilter
getDefaultFileFilter
in class AbstractFormatFilter
public boolean hasOptions()
AbstractFormatFilter
hasOptions
in class AbstractFormatFilter
public int showOptionsDialog(java.awt.Component parent)
AbstractFormatFilter
showOptionsDialog
in class AbstractFormatFilter
parent
- the parent component of the dialog, can be null
; see showDialog
for
detailsGraphicsEnvironment.isHeadless()
public java.lang.String toString()
AbstractFormatFilter
toString
method to return the filter descriptiontoString
in class AbstractFormatFilter
public TaskGraph importWorkflow(java.io.File file, TrianaProperties properties) throws TaskGraphException, java.io.IOException
TaskGraphImporterInterface
TaskGraph
from the file choosen by the user.importWorkflow
in interface TaskGraphImporterInterface
TaskGraphException
- 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.