2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
23 import org.yaml.snakeyaml.TypeDescription;
26 import java.util.Objects;
28 public class ToscaInputsAnnotation {
32 private Map<String, Object> properties;
34 public String getName() {
37 public void setName(String name) {
40 public String getType() {
43 public void setType(String type) {
46 public Map<String, Object> getProperties() {
49 public void setProperties(Map<String, Object> properties) {
50 this.properties = properties;
54 //gets Type description for Yaml snake
55 public static TypeDescription getTypeDescription(){
56 return new TypeDescription(ToscaInputsAnnotation.class);
60 public boolean equals(Object o) {
61 if (this == o) return true;
62 if (o == null || getClass() != o.getClass()) return false;
63 ToscaInputsAnnotation that = (ToscaInputsAnnotation) o;
64 return Objects.equals(type, that.type);
68 public int hashCode() {
69 return Objects.hash(type);