f9c1706cfa452cae420ed00661cdfd93a85b624b
[policy/apex-pdp.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.apex.client.editor.rest.handling.bean;
22
23 import java.util.Arrays;
24 import java.util.Map;
25
26 import javax.xml.bind.annotation.XmlType;
27
28 /**
29  * The Task Bean.
30  */
31 @XmlType
32 public class BeanTask extends BeanBase {
33     private String name = null;
34     private String version = null;
35     private String uuid = null;
36     private String description = null;
37     private BeanLogic taskLogic = null;
38     private Map<String, BeanField> inputFields = null;
39     private Map<String, BeanField> outputFields = null;
40     private Map<String, BeanTaskParameter> parameters = null;
41     private BeanKeyRef[] contexts = null;
42
43     /**
44      * Gets the name.
45      *
46      * @return the name
47      */
48     public String getName() {
49         return name;
50     }
51
52     /**
53      * Gets the version.
54      *
55      * @return the version
56      */
57     public String getVersion() {
58         return version;
59     }
60
61     /**
62      * Gets the uuid.
63      *
64      * @return the uuid
65      */
66     public String getUuid() {
67         return uuid;
68     }
69
70     /**
71      * Gets the description.
72      *
73      * @return the description
74      */
75     public String getDescription() {
76         return description;
77     }
78
79     /**
80      * Gets the task logic.
81      *
82      * @return the task logic
83      */
84     public BeanLogic getTaskLogic() {
85         return taskLogic;
86     }
87
88     /**
89      * Gets the input fields.
90      *
91      * @return the input fields
92      */
93     public Map<String, BeanField> getInputFields() {
94         return inputFields;
95     }
96
97     /**
98      * Gets the output fields.
99      *
100      * @return the output fields
101      */
102     public Map<String, BeanField> getOutputFields() {
103         return outputFields;
104     }
105
106     /**
107      * Gets the parameters.
108      *
109      * @return the parameters
110      */
111     public Map<String, BeanTaskParameter> getParameters() {
112         return parameters;
113     }
114
115     /**
116      * Gets the contexts.
117      *
118      * @return the contexts
119      */
120     public BeanKeyRef[] getContexts() {
121         return contexts;
122     }
123
124     /*
125      * (non-Javadoc)
126      *
127      * @see java.lang.Object#toString()
128      */
129     @Override
130     public String toString() {
131         return "BeanTask [name=" + name + ", version=" + version + ", uuid=" + uuid + ", description=" + description
132                 + ", taskLogic=" + taskLogic + ", inputFields=" + inputFields + ", outputFields=" + outputFields
133                 + ", parameters=" + parameters + ", contexts=" + Arrays.toString(contexts) + "]";
134     }
135 }