92178673e3282484a83540429044c9f923d20153
[ccsdk/cds.git] /
1 /*\r
2  * Copyright © 2017-2018 AT&T Intellectual Property.\r
3  * Modifications Copyright © 2018 IBM.\r
4  *\r
5  * Licensed under the Apache License, Version 2.0 (the "License");\r
6  * you may not use this file except in compliance with the License.\r
7  * You may obtain a copy of the License at\r
8  *\r
9  *     http://www.apache.org/licenses/LICENSE-2.0\r
10  *\r
11  * Unless required by applicable law or agreed to in writing, software\r
12  * distributed under the License is distributed on an "AS IS" BASIS,\r
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14  * See the License for the specific language governing permissions and\r
15  * limitations under the License.\r
16  */\r
17 \r
18 package org.onap.ccsdk.apps.controllerblueprints.resource.dict.data;\r
19 \r
20 import com.fasterxml.jackson.annotation.JsonProperty;\r
21 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;\r
22 \r
23 import java.util.List;\r
24 import java.util.Map;\r
25 /**\r
26  *\r
27  * DictionaryDefinition.java Purpose:\r
28  * @author Brinda Santh\r
29  */\r
30 @Deprecated\r
31 public class DictionaryDefinition {\r
32     @JsonProperty(value = "name", required = true)\r
33     private String name;\r
34 \r
35     @JsonProperty(value = "description")\r
36     private String description;\r
37 \r
38     @JsonProperty(value = "valid-values")\r
39     private String validValues;\r
40 \r
41     @JsonProperty(value = "sample-value")\r
42     private String sampleValue;\r
43 \r
44     private String tags;\r
45 \r
46     @JsonProperty(value = "updated-by")\r
47     private String updatedBy;\r
48 \r
49     @JsonProperty(value = "resource-type", required = true)\r
50     private String resourceType;\r
51 \r
52     @JsonProperty(value = "resource-path", required = true)\r
53     private String resourcePath;\r
54 \r
55     @JsonProperty(value = "data-type", required = true)\r
56     private String dataType;\r
57 \r
58     @JsonProperty("entry-schema")\r
59     private String entrySchema;\r
60 \r
61     @JsonProperty(value = "default")\r
62     private Object defaultValue;\r
63 \r
64     @JsonProperty(value = "source", required = true)\r
65     @JsonDeserialize(using = SourceDeserializer.class, keyAs = String.class, contentAs = ResourceSource.class)\r
66     private Map<String, ResourceSource> source;\r
67 \r
68     @JsonProperty("candidate-dependency")\r
69     private Map<String, DictionaryDependency> dependency;\r
70 \r
71     @JsonProperty("decryption-rules")\r
72     private List<DecryptionRule> decryptionRules;\r
73 \r
74     public String getName() {\r
75         return name;\r
76     }\r
77 \r
78     public void setName(String name) {\r
79         this.name = name;\r
80     }\r
81 \r
82     public String getDescription() {\r
83         return description;\r
84     }\r
85 \r
86     public void setDescription(String description) {\r
87         this.description = description;\r
88     }\r
89 \r
90     public String getValidValues() {\r
91         return validValues;\r
92     }\r
93 \r
94     public void setValidValues(String validValues) {\r
95         this.validValues = validValues;\r
96     }\r
97 \r
98     public String getSampleValue() {\r
99         return sampleValue;\r
100     }\r
101 \r
102     public void setSampleValue(String sampleValue) {\r
103         this.sampleValue = sampleValue;\r
104     }\r
105 \r
106     public String getTags() {\r
107         return tags;\r
108     }\r
109 \r
110     public void setTags(String tags) {\r
111         this.tags = tags;\r
112     }\r
113 \r
114     public String getUpdatedBy() {\r
115         return updatedBy;\r
116     }\r
117 \r
118     public void setUpdatedBy(String updatedBy) {\r
119         this.updatedBy = updatedBy;\r
120     }\r
121 \r
122     public String getResourceType() {\r
123         return resourceType;\r
124     }\r
125 \r
126     public void setResourceType(String resourceType) {\r
127         this.resourceType = resourceType;\r
128     }\r
129 \r
130     public String getResourcePath() {\r
131         return resourcePath;\r
132     }\r
133 \r
134     public void setResourcePath(String resourcePath) {\r
135         this.resourcePath = resourcePath;\r
136     }\r
137 \r
138     public String getDataType() {\r
139         return dataType;\r
140     }\r
141 \r
142     public void setDataType(String dataType) {\r
143         this.dataType = dataType;\r
144     }\r
145 \r
146     public String getEntrySchema() {\r
147         return entrySchema;\r
148     }\r
149 \r
150     public void setEntrySchema(String entrySchema) {\r
151         this.entrySchema = entrySchema;\r
152     }\r
153 \r
154     public Object getDefaultValue() {\r
155         return defaultValue;\r
156     }\r
157 \r
158     public void setDefaultValue(Object defaultValue) {\r
159         this.defaultValue = defaultValue;\r
160     }\r
161 \r
162     public Map<String, ResourceSource> getSource() {\r
163         return source;\r
164     }\r
165 \r
166     public void setSource(Map<String, ResourceSource> source) {\r
167         this.source = source;\r
168     }\r
169 \r
170     public Map<String, DictionaryDependency> getDependency() {\r
171         return dependency;\r
172     }\r
173 \r
174     public void setDependency(Map<String, DictionaryDependency> dependency) {\r
175         this.dependency = dependency;\r
176     }\r
177 \r
178     public List<DecryptionRule> getDecryptionRules() {\r
179         return decryptionRules;\r
180     }\r
181 \r
182     public void setDecryptionRules(List<DecryptionRule> decryptionRules) {\r
183         this.decryptionRules = decryptionRules;\r
184     }\r
185 \r
186 }\r