-
Notifications
You must be signed in to change notification settings - Fork 219
/
ProcessLocation.java
67 lines (55 loc) · 2.24 KB
/
ProcessLocation.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Copyright (C) 2001-2018 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with this program.
* If not, see http://www.gnu.org/licenses/.
*/
package com.rapidminer;
import java.io.IOException;
import com.rapidminer.tools.ProgressListener;
import com.rapidminer.tools.XMLException;
/**
* A place where a process can be saved. Basically, this is either a file or a location in a
* repository.
*
* @author Simon Fischer
* */
public interface ProcessLocation {
/** Reads the process and returns it. */
Process load(ProgressListener listener) throws IOException, XMLException;
/** Stores the process at the referenced location. */
void store(Process process, ProgressListener listener) throws IOException;
/** The toString representation is used, e.g. in the welcome screen dialog, */
@Override
String toString();
/**
* Reads the contents of the referenced resource and returns the XML without parsing it. Used if
* process file is broken.
*/
String getRawXML() throws IOException;
/** Returns a string saved to the history file. */
String toHistoryFileString();
/** Returns a string as it is displayed in the recent files menu. */
String toMenuString();
/** Returns a short name, e.g. the last component of the path. */
String getShortName();
/**
* The icon name without size modifier that visualizes where this process is stored, e.g. RM Server repo, local repo, Cloud, ...
*
* @return the name of the icon to visualize the origin of this recent process
* @since 8.2
*/
String getIconName();
}