Code Improvement
[clamp.git] / src / main / java / org / onap / clamp / clds / model / prop / ModelBpmnEntry.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP CLAMP
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                             reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END============================================
20  * ===================================================================
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  */
23
24 package org.onap.clamp.clds.model.prop;
25
26 import com.att.eelf.configuration.EELFLogger;
27 import com.att.eelf.configuration.EELFManager;
28
29 /**
30  * Model BPMN property entry
31  * <p>
32  * Example json: {"policy":
33  * [{"id":"Policy_0oxeocn", "from":"StartEvent_1"}]}
34  */
35 public class ModelBpmnEntry {
36     protected static final EELFLogger       logger      = EELFManager.getInstance().getLogger(ModelBpmnEntry.class);
37     protected static final EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger();
38
39     private String                  type;
40     private String                  id;
41     private String                  fromId;
42
43     /**
44      * Parse the json so that the "id" and "from" fields can be retrieved on
45      * demand.
46      *
47      * @param type
48      * @param id
49      * @param fromId
50      */
51     public ModelBpmnEntry(String type, String id, String fromId) {
52         this.type = type;
53         this.id = id;
54         this.fromId = fromId;
55     }
56
57     /**
58      * @return the type
59      */
60     public String getType() {
61         return type;
62     }
63
64     /**
65      * @param type
66      *            the type to set
67      */
68     public void setType(String type) {
69         this.type = type;
70     }
71
72     /**
73      * @return the id
74      */
75     public String getId() {
76         return id;
77     }
78
79     /**
80      * @param id
81      *            the id to set
82      */
83     public void setId(String id) {
84         this.id = id;
85     }
86
87     /**
88      * @return the fromId
89      */
90     public String getFromId() {
91         return fromId;
92     }
93
94     /**
95      * @param fromId
96      *            the fromId to set
97      */
98     public void setFromId(String fromId) {
99         this.fromId = fromId;
100     }
101
102 }