BioLegato 0.7.0 GDE Menu support plugin

org.biolegato.ezmenu.variables
Class GDETempFile

java.lang.Object
  extended by org.biolegato.ezmenu.variables.GDETempFile
All Implemented Interfaces:
GDEVariable

public class GDETempFile
extends java.lang.Object
implements GDEVariable

Stores information about the file fields used by the command

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
GDETempFile(java.util.Map data)
          Creates a new instance of GDETempFile.
 
Method Summary
 void close()
          Releases any files currently in use by this class
 java.lang.String getName()
          Returns the name of the variable.
static java.lang.String getType()
          Returns the type name
 java.lang.Object getValue()
          Gets the current filename corresponding to this variable If the file does not exists, then this function creates a file to use for IO and writes any initial contents
 boolean isWidget()
          Returns the widget status of the variable (i.e., is the variable displayable)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDETempFile

public GDETempFile(java.util.Map data)
Creates a new instance of GDETempFile.

Parameters:
data - the data to create the temporary file variable with.
Method Detail

getName

public java.lang.String getName()
Returns the name of the variable.

Specified by:
getName in interface GDEVariable
Returns:
the name of the variable

getValue

public java.lang.Object getValue()
Gets the current filename corresponding to this variable If the file does not exists, then this function creates a file to use for IO and writes any initial contents

Specified by:
getValue in interface GDEVariable
Returns:
the filename to use for command line substitution.

close

public void close()
Releases any files currently in use by this class


getType

public static java.lang.String getType()
Returns the type name

Returns:
"tempfile"

isWidget

public boolean isWidget()
Returns the widget status of the variable (i.e., is the variable displayable)

Returns:
true if the variable contains a displayable component.

BioLegato 0.7.0 GDE Menu support plugin

Copyright © 2008-2010 University of Manitoba.