2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
3 * Modifications Copyright © 2018 IBM.
\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
9 * http://www.apache.org/licenses/LICENSE-2.0
\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
18 package org.onap.ccsdk.apps.controllerblueprints.resource.dict.data;
\r
20 import com.fasterxml.jackson.annotation.JsonProperty;
\r
21 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
\r
23 import java.util.List;
\r
24 import java.util.Map;
\r
27 * DictionaryDefinition.java Purpose:
\r
28 * @author Brinda Santh
\r
31 public class DictionaryDefinition {
\r
32 @JsonProperty(value = "name", required = true)
\r
33 private String name;
\r
35 @JsonProperty(value = "description")
\r
36 private String description;
\r
38 @JsonProperty(value = "valid-values")
\r
39 private String validValues;
\r
41 @JsonProperty(value = "sample-value")
\r
42 private String sampleValue;
\r
44 private String tags;
\r
46 @JsonProperty(value = "updated-by")
\r
47 private String updatedBy;
\r
49 @JsonProperty(value = "resource-type", required = true)
\r
50 private String resourceType;
\r
52 @JsonProperty(value = "resource-path", required = true)
\r
53 private String resourcePath;
\r
55 @JsonProperty(value = "data-type", required = true)
\r
56 private String dataType;
\r
58 @JsonProperty("entry-schema")
\r
59 private String entrySchema;
\r
61 @JsonProperty(value = "default")
\r
62 private Object defaultValue;
\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
68 @JsonProperty("candidate-dependency")
\r
69 private Map<String, DictionaryDependency> dependency;
\r
71 @JsonProperty("decryption-rules")
\r
72 private List<DecryptionRule> decryptionRules;
\r
74 public String getName() {
\r
78 public void setName(String name) {
\r
82 public String getDescription() {
\r
86 public void setDescription(String description) {
\r
87 this.description = description;
\r
90 public String getValidValues() {
\r
94 public void setValidValues(String validValues) {
\r
95 this.validValues = validValues;
\r
98 public String getSampleValue() {
\r
102 public void setSampleValue(String sampleValue) {
\r
103 this.sampleValue = sampleValue;
\r
106 public String getTags() {
\r
110 public void setTags(String tags) {
\r
114 public String getUpdatedBy() {
\r
118 public void setUpdatedBy(String updatedBy) {
\r
119 this.updatedBy = updatedBy;
\r
122 public String getResourceType() {
\r
123 return resourceType;
\r
126 public void setResourceType(String resourceType) {
\r
127 this.resourceType = resourceType;
\r
130 public String getResourcePath() {
\r
131 return resourcePath;
\r
134 public void setResourcePath(String resourcePath) {
\r
135 this.resourcePath = resourcePath;
\r
138 public String getDataType() {
\r
142 public void setDataType(String dataType) {
\r
143 this.dataType = dataType;
\r
146 public String getEntrySchema() {
\r
147 return entrySchema;
\r
150 public void setEntrySchema(String entrySchema) {
\r
151 this.entrySchema = entrySchema;
\r
154 public Object getDefaultValue() {
\r
155 return defaultValue;
\r
158 public void setDefaultValue(Object defaultValue) {
\r
159 this.defaultValue = defaultValue;
\r
162 public Map<String, ResourceSource> getSource() {
\r
166 public void setSource(Map<String, ResourceSource> source) {
\r
167 this.source = source;
\r
170 public Map<String, DictionaryDependency> getDependency() {
\r
174 public void setDependency(Map<String, DictionaryDependency> dependency) {
\r
175 this.dependency = dependency;
\r
178 public List<DecryptionRule> getDecryptionRules() {
\r
179 return decryptionRules;
\r
182 public void setDecryptionRules(List<DecryptionRule> decryptionRules) {
\r
183 this.decryptionRules = decryptionRules;
\r