com.rapidminer
Class FileProcessLocation

java.lang.Object
  extended by com.rapidminer.FileProcessLocation
All Implemented Interfaces:
ProcessLocation

public class FileProcessLocation
extends java.lang.Object
implements ProcessLocation

Author:
Simon Fischer

Constructor Summary
FileProcessLocation(java.io.File file)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.io.File getFile()
           
 java.lang.String getRawXML()
          Reads the contents of the referenced resource and returns the XML without parsing it.
 java.lang.String getShortName()
          Returns a short name, e.g. the last component of the path.
 int hashCode()
           
 Process load(ProgressListener l)
          Reads the process and returns it.
 void store(Process process, ProgressListener listener)
          Stores the process at the referenced location.
 java.lang.String toHistoryFileString()
          Returns a string saved to the history file.
 java.lang.String toMenuString()
          Returns a string as it is displayed in the recent files menu.
 java.lang.String toString()
          The toString representation is used, e.g. in the welcome screen dialog,
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileProcessLocation

public FileProcessLocation(java.io.File file)
Method Detail

load

public Process load(ProgressListener l)
             throws java.io.IOException,
                    XMLException
Description copied from interface: ProcessLocation
Reads the process and returns it.

Specified by:
load in interface ProcessLocation
Throws:
java.io.IOException
XMLException

toHistoryFileString

public java.lang.String toHistoryFileString()
Description copied from interface: ProcessLocation
Returns a string saved to the history file.

Specified by:
toHistoryFileString in interface ProcessLocation

getRawXML

public java.lang.String getRawXML()
                           throws java.io.IOException
Description copied from interface: ProcessLocation
Reads the contents of the referenced resource and returns the XML without parsing it. Used if process file is broken.

Specified by:
getRawXML in interface ProcessLocation
Throws:
java.io.IOException

store

public void store(Process process,
                  ProgressListener listener)
           throws java.io.IOException
Description copied from interface: ProcessLocation
Stores the process at the referenced location.

Specified by:
store in interface ProcessLocation
Throws:
java.io.IOException

getFile

public java.io.File getFile()

toMenuString

public java.lang.String toMenuString()
Description copied from interface: ProcessLocation
Returns a string as it is displayed in the recent files menu.

Specified by:
toMenuString in interface ProcessLocation

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Description copied from interface: ProcessLocation
The toString representation is used, e.g. in the welcome screen dialog,

Specified by:
toString in interface ProcessLocation
Overrides:
toString in class java.lang.Object

getShortName

public java.lang.String getShortName()
Description copied from interface: ProcessLocation
Returns a short name, e.g. the last component of the path.

Specified by:
getShortName in interface ProcessLocation


Copyright © 2001-2009 by Rapid-I