2 * Copyright © 2017-2018 AT&T Intellectual Property.
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
17 package org.onap.ccsdk.apps.controllerblueprints.resource.dict.data;
\r
19 import com.fasterxml.jackson.annotation.JsonProperty;
\r
20 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
\r
22 import java.util.List;
\r
23 import java.util.Map;
\r
26 * DictionaryDefinition.java Purpose:
\r
27 * @author Brinda Santh
\r
29 public class DictionaryDefinition {
\r
30 @JsonProperty(value = "name", required = true)
\r
31 private String name;
\r
33 @JsonProperty(value = "description")
\r
34 private String description;
\r
36 @JsonProperty(value = "valid-values")
\r
37 private String validValues;
\r
39 @JsonProperty(value = "sample-value")
\r
40 private String sampleValue;
\r
42 private String tags;
\r
44 @JsonProperty(value = "updated-by")
\r
45 private String updatedBy;
\r
47 @JsonProperty(value = "resource-type", required = true)
\r
48 private String resourceType;
\r
50 @JsonProperty(value = "resource-path", required = true)
\r
51 private String resourcePath;
\r
53 @JsonProperty(value = "data-type", required = true)
\r
54 private String dataType;
\r
56 @JsonProperty("entry-schema")
\r
57 private String entrySchema;
\r
59 @JsonProperty(value = "default")
\r
60 private Object defaultValue;
\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
66 @JsonProperty("candidate-dependency")
\r
67 private Map<String, DictionaryDependency> dependency;
\r
69 @JsonProperty("decryption-rules")
\r
70 private List<DecryptionRule> decryptionRules;
\r
72 public String getName() {
\r
76 public void setName(String name) {
\r
80 public String getDescription() {
\r
84 public void setDescription(String description) {
\r
85 this.description = description;
\r
88 public String getValidValues() {
\r
92 public void setValidValues(String validValues) {
\r
93 this.validValues = validValues;
\r
96 public String getSampleValue() {
\r
100 public void setSampleValue(String sampleValue) {
\r
101 this.sampleValue = sampleValue;
\r
104 public String getTags() {
\r
108 public void setTags(String tags) {
\r
112 public String getUpdatedBy() {
\r
116 public void setUpdatedBy(String updatedBy) {
\r
117 this.updatedBy = updatedBy;
\r
120 public String getResourceType() {
\r
121 return resourceType;
\r
124 public void setResourceType(String resourceType) {
\r
125 this.resourceType = resourceType;
\r
128 public String getResourcePath() {
\r
129 return resourcePath;
\r
132 public void setResourcePath(String resourcePath) {
\r
133 this.resourcePath = resourcePath;
\r
136 public String getDataType() {
\r
140 public void setDataType(String dataType) {
\r
141 this.dataType = dataType;
\r
144 public String getEntrySchema() {
\r
145 return entrySchema;
\r
148 public void setEntrySchema(String entrySchema) {
\r
149 this.entrySchema = entrySchema;
\r
152 public Object getDefaultValue() {
\r
153 return defaultValue;
\r
156 public void setDefaultValue(Object defaultValue) {
\r
157 this.defaultValue = defaultValue;
\r
160 public Map<String, ResourceSource> getSource() {
\r
164 public void setSource(Map<String, ResourceSource> source) {
\r
165 this.source = source;
\r
168 public Map<String, DictionaryDependency> getDependency() {
\r
172 public void setDependency(Map<String, DictionaryDependency> dependency) {
\r
173 this.dependency = dependency;
\r
176 public List<DecryptionRule> getDecryptionRules() {
\r
177 return decryptionRules;
\r
180 public void setDecryptionRules(List<DecryptionRule> decryptionRules) {
\r
181 this.decryptionRules = decryptionRules;
\r