]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlowDescriptor.java
Deal with special characters in logs
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / execution / ExecutionFlowDescriptor.java
1 /*
2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package org.argeo.slc.execution;
18
19 import java.util.Map;
20
21 public class ExecutionFlowDescriptor {
22 private String name;
23 private String description;
24 private String path;
25 private Map<String, Object> values;
26 private ExecutionSpec executionSpec;
27
28 public ExecutionFlowDescriptor() {
29 }
30
31 public ExecutionFlowDescriptor(String name, Map<String, Object> values,
32 ExecutionSpec executionSpec) {
33 this.name = name;
34 this.values = values;
35 this.executionSpec = executionSpec;
36 }
37
38 public String getName() {
39 return name;
40 }
41
42 public String getPath() {
43 return path;
44 }
45
46 public void setPath(String path) {
47 this.path = path;
48 }
49
50 public Map<String, Object> getValues() {
51 return values;
52 }
53
54 public ExecutionSpec getExecutionSpec() {
55 return executionSpec;
56 }
57
58 public void setName(String name) {
59 this.name = name;
60 }
61
62 public void setValues(Map<String, Object> values) {
63 this.values = values;
64 }
65
66 public void setExecutionSpec(ExecutionSpec executionSpec) {
67 this.executionSpec = executionSpec;
68 }
69
70 public String getDescription() {
71 return description;
72 }
73
74 public void setDescription(String description) {
75 this.description = description;
76 }
77
78 @Override
79 public boolean equals(Object obj) {
80 if (obj instanceof ExecutionFlowDescriptor)
81 return name.equals(((ExecutionFlowDescriptor) obj).getName());
82 return false;
83 }
84
85 @Override
86 public int hashCode() {
87 return name.hashCode();
88 }
89
90 }