1 |
|
/* ProcessData.java -- Data for the process wizard. |
2 |
|
Copyright (C) 2005 The University of Sheffield. |
3 |
|
|
4 |
|
This file is part of the CASheW-s editor Eclipse plug-in. |
5 |
|
|
6 |
|
The CASheW-s editor Eclipse plug-in is free software; you may copy, modify, |
7 |
|
and redistribute it under the terms of the GNU General Public License |
8 |
|
version 2 (or, at your option, any later version), and/or the Eclipse |
9 |
|
Public License version 1.0. |
10 |
|
|
11 |
|
The CASheW-s editor is distributed in the hope that it will be useful, but |
12 |
|
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
|
General Public License for more details. |
15 |
|
|
16 |
|
You should have received a copy of the GNU General Public License |
17 |
|
along with The CASheW-s editor; see the file COPYING. If not, write to the |
18 |
|
Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
19 |
|
02111-1307 USA. |
20 |
|
|
21 |
|
The University of Sheffield makes available all content in this plug-in |
22 |
|
("Content"). Unless otherwise indicated below, the Content is provided to |
23 |
|
you under the terms and conditions of the Eclipse Public License Version |
24 |
|
1.0 ("EPL"). A copy of the EPL is available at |
25 |
|
http://www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, |
26 |
|
"Program" will mean the Content. |
27 |
|
|
28 |
|
If you did not receive this Content directly from the University of Sheffield, |
29 |
|
the Content is being redistributed by another party ("Redistributor") and |
30 |
|
different terms and conditions may apply to your use of any object code in |
31 |
|
the Content. Check the Redistributor's license that was provided with the |
32 |
|
Content. If no such license exists, contact the Redistributor. Unless |
33 |
|
otherwise indicated below, the terms and conditions of the EPL still apply |
34 |
|
to any source code in the Content. |
35 |
|
|
36 |
|
*/ |
37 |
package nongnu.cashews.eclipse.composer.wizards; |
package nongnu.cashews.eclipse.composer.wizards; |
38 |
|
|
39 |
import java.util.HashSet; |
import java.util.HashSet; |
40 |
import java.util.List; |
import java.util.List; |
41 |
import java.util.Set; |
import java.util.Set; |
42 |
|
|
43 |
public class ProcessData { |
/** |
44 |
|
* Manages data for the process wizard. |
45 |
|
* |
46 |
|
* @author Xianfeng Liu (acp04xfl@shef.ac.uk) |
47 |
|
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
48 |
|
*/ |
49 |
|
public class ProcessData |
50 |
|
{ |
51 |
|
|
52 |
|
public String performanceName; |
53 |
|
|
54 |
|
public String operationName; |
55 |
|
|
56 |
|
public Set<Object> item = new HashSet<Object>(); |
57 |
|
|
58 |
|
public Object[] getElements(List inputElement) |
59 |
|
{ |
60 |
|
return inputElement.toArray(); |
61 |
|
} |
62 |
|
|
63 |
public String performanceName; |
public String toString() |
64 |
public String operationName; |
{ |
65 |
public Set<Object> item = new HashSet<Object>(); |
return getClass().getName() |
66 |
public Object[] getElements(Object inputElement) { |
+ "[performanceName=" |
67 |
return ((List) inputElement).toArray(); |
+ performanceName |
68 |
} |
+ ", operationName=" |
69 |
public String toString() { |
+ operationName |
70 |
StringBuffer sb = new StringBuffer(); |
+ "]"; |
|
sb.append("Performance Name:\t" + performanceName.toString() + "\n"); |
|
|
sb.append("Operation Name:\t" + operationName.toString() + "\n"); |
|
|
return sb.toString(); |
|
71 |
} |
} |
72 |
|
|
73 |
|
|