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.JsonNode;
\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
32 @JsonProperty(value = "description")
\r
33 private String description;
\r
35 @JsonProperty(value = "valid-values")
\r
36 private String validValues;
\r
38 @JsonProperty(value = "sample-value")
\r
39 private String sampleValue;
\r
41 private String tags;
\r
42 @JsonProperty(value = "updated-by")
\r
43 private String updatedBy;
\r
45 @JsonProperty(value = "resource-type", required = true)
\r
46 private String resourceType;
\r
48 @JsonProperty(value = "resource-path", required = true)
\r
49 private String resourcePath;
\r
51 @JsonProperty(value = "data-type", required = true)
\r
52 private String dataType;
\r
54 @JsonProperty("entry-schema")
\r
55 private String entrySchema;
\r
57 @JsonProperty(value = "default")
\r
58 private Object defaultValue;
\r
60 @JsonProperty(value = "source", required = true)
\r
61 private Map<String, JsonNode> source;
\r
63 @JsonProperty("candidate-dependency")
\r
64 private Map<String, DictionaryDependency> dependency;
\r
66 @JsonProperty("decryption-rules")
\r
67 private List<DecryptionRule> decryptionRules;
\r
69 public String getName() {
\r
73 public void setName(String name) {
\r
77 public String getDescription() {
\r
81 public void setDescription(String description) {
\r
82 this.description = description;
\r
85 public String getValidValues() {
\r
89 public void setValidValues(String validValues) {
\r
90 this.validValues = validValues;
\r
93 public String getSampleValue() {
\r
97 public void setSampleValue(String sampleValue) {
\r
98 this.sampleValue = sampleValue;
\r
101 public String getTags() {
\r
105 public void setTags(String tags) {
\r
109 public String getUpdatedBy() {
\r
113 public void setUpdatedBy(String updatedBy) {
\r
114 this.updatedBy = updatedBy;
\r
117 public String getResourceType() {
\r
118 return resourceType;
\r
121 public void setResourceType(String resourceType) {
\r
122 this.resourceType = resourceType;
\r
125 public String getResourcePath() {
\r
126 return resourcePath;
\r
129 public void setResourcePath(String resourcePath) {
\r
130 this.resourcePath = resourcePath;
\r
133 public String getDataType() {
\r
137 public void setDataType(String dataType) {
\r
138 this.dataType = dataType;
\r
141 public String getEntrySchema() {
\r
142 return entrySchema;
\r
145 public void setEntrySchema(String entrySchema) {
\r
146 this.entrySchema = entrySchema;
\r
149 public Object getDefaultValue() {
\r
150 return defaultValue;
\r
153 public void setDefaultValue(Object defaultValue) {
\r
154 this.defaultValue = defaultValue;
\r
157 public Map<String, JsonNode> getSource() {
\r
161 public void setSource(Map<String, JsonNode> source) {
\r
162 this.source = source;
\r
165 public Map<String, DictionaryDependency> getDependency() {
\r
169 public void setDependency(Map<String, DictionaryDependency> dependency) {
\r
170 this.dependency = dependency;
\r
173 public List<DecryptionRule> getDecryptionRules() {
\r
174 return decryptionRules;
\r
177 public void setDecryptionRules(List<DecryptionRule> decryptionRules) {
\r
178 this.decryptionRules = decryptionRules;
\r