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