6420a160e6cf3d033905dd74b7e5c1269926d31e
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / main / java / org / onap / sdc / workflowdesigner / model / Element.java
1 /**\r
2  * Copyright (c) 2017 ZTE Corporation.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the Apache License, Version 2.0\r
5  * and the Eclipse Public License v1.0 which both accompany this distribution,\r
6  * and are available at http://www.eclipse.org/legal/epl-v10.html\r
7  * and http://www.apache.org/licenses/LICENSE-2.0\r
8  *\r
9  * Contributors:\r
10  *     ZTE - initial API and implementation and/or initial documentation\r
11  */\r
12 package org.onap.sdc.workflowdesigner.model;\r
13 \r
14 import java.util.List;\r
15 \r
16 public class Element {\r
17     public enum TYPE {\r
18         startEvent, endEvent, errorStartEvent, errorEndEvent, serviceTask, scriptTask, exclusiveGateway, parallelGateway, restTask, intermediateCatchEvent\r
19     };\r
20 \r
21     private String id;\r
22     private String name;\r
23     private TYPE type;\r
24     private String documentation;\r
25     private Position position;\r
26     private List<String> connections;\r
27 \r
28     public String getId() {\r
29         return id;\r
30     }\r
31 \r
32     public Position getPosition() {\r
33         return position;\r
34     }\r
35 \r
36     public void setPosition(Position position) {\r
37         this.position = position;\r
38     }\r
39 \r
40     public List<String> getConnections() {\r
41         return connections;\r
42     }\r
43 \r
44     public void setConnections(List<String> connections) {\r
45         this.connections = connections;\r
46     }\r
47 \r
48     public void setId(String id) {\r
49         this.id = id;\r
50     }\r
51 \r
52     public String getName() {\r
53         return name;\r
54     }\r
55 \r
56     public void setName(String name) {\r
57         this.name = name;\r
58     }\r
59 \r
60     public String getDocumentation() {\r
61         return documentation;\r
62     }\r
63 \r
64     public void setDocumentation(String documentation) {\r
65         this.documentation = documentation;\r
66     }\r
67 \r
68     public TYPE getType() {\r
69         return type;\r
70     }\r
71 \r
72     public void setType(TYPE type) {\r
73         this.type = type;\r
74     }\r
75 \r
76 }\r