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.config.model.data;
\r
20 import java.util.HashMap;
\r
21 import java.util.List;
\r
22 import com.fasterxml.jackson.annotation.JsonIgnore;
\r
23 import com.fasterxml.jackson.annotation.JsonProperty;
\r
26 * PropertyDefinition.java Purpose: Provide PropertyDefinition TOSCO Model POJO bean.
\r
30 public class PropertyDefinition {
\r
33 private String description;
\r
34 private Boolean required;
\r
35 private String type;
\r
36 @JsonProperty("default")
\r
37 private Object defaultValue;
\r
38 private String status;
\r
39 private List<HashMap<String, Object>> constraints;
\r
40 @JsonProperty("entry_schema")
\r
41 private EntrySchema entrySchema;
\r
42 private Object value;
\r
45 public String toString() {
\r
46 StringBuilder builder = new StringBuilder("[");
\r
47 builder.append(" type :" + getType());
\r
48 builder.append(", value :" + getValue());
\r
49 builder.append("]");
\r
50 return builder.toString();
\r
53 public String getId() {
\r
57 public void setId(String id) {
\r
61 public String getDescription() {
\r
65 public void setDescription(String description) {
\r
66 this.description = description;
\r
69 public Boolean getRequired() {
\r
73 public void setRequired(Boolean required) {
\r
74 this.required = required;
\r
77 public String getType() {
\r
81 public void setType(String type) {
\r
85 public Object getDefaultValue() {
\r
86 return defaultValue;
\r
89 public void setDefaultValue(Object defaultValue) {
\r
90 this.defaultValue = defaultValue;
\r
93 public String getStatus() {
\r
97 public void setStatus(String status) {
\r
98 this.status = status;
\r
101 public List<HashMap<String, Object>> getConstraints() {
\r
102 return constraints;
\r
105 public void setConstraints(List<HashMap<String, Object>> constraints) {
\r
106 this.constraints = constraints;
\r
109 public EntrySchema getEntrySchema() {
\r
110 return entrySchema;
\r
113 public void setEntrySchema(EntrySchema entrySchema) {
\r
114 this.entrySchema = entrySchema;
\r
117 public Object getValue() {
\r
121 public void setValue(Object value) {
\r
122 this.value = value;
\r