]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java
Add versioning driver
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / execution / ExecutionFlowDescriptor.java
1 package org.argeo.slc.execution;
2
3 import java.util.Map;
4
5 public class ExecutionFlowDescriptor {
6 private String name;
7 private String description;
8 private String path;
9 private Map<String, Object> values;
10 private ExecutionSpec executionSpec;
11
12 public ExecutionFlowDescriptor() {
13 }
14
15 public ExecutionFlowDescriptor(String name, Map<String, Object> values,
16 ExecutionSpec executionSpec) {
17 this.name = name;
18 this.values = values;
19 this.executionSpec = executionSpec;
20 }
21
22 public String getName() {
23 return name;
24 }
25
26 public String getPath() {
27 return path;
28 }
29
30 public void setPath(String path) {
31 this.path = path;
32 }
33
34 public Map<String, Object> getValues() {
35 return values;
36 }
37
38 public ExecutionSpec getExecutionSpec() {
39 return executionSpec;
40 }
41
42 public void setName(String name) {
43 this.name = name;
44 }
45
46 public void setValues(Map<String, Object> values) {
47 this.values = values;
48 }
49
50 public void setExecutionSpec(ExecutionSpec executionSpec) {
51 this.executionSpec = executionSpec;
52 }
53
54 public String getDescription() {
55 return description;
56 }
57
58 public void setDescription(String description) {
59 this.description = description;
60 }
61
62 @Override
63 public boolean equals(Object obj) {
64 if (obj instanceof ExecutionFlowDescriptor)
65 return name.equals(((ExecutionFlowDescriptor) obj).getName());
66 return false;
67 }
68
69 @Override
70 public int hashCode() {
71 return name.hashCode();
72 }
73
74 }