2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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;
25 public class ToscaImportsDefinition {
29 private String repository;
30 private String namespace_uri;
31 private String namespace_prefix;
33 public ToscaImportsDefinition() {
37 public ToscaImportsDefinition(String name, String file, String repository, String namespace_uri, String namespace_prefix) {
41 this.repository = repository;
42 this.namespace_uri = namespace_uri;
43 this.namespace_prefix = namespace_prefix;
46 public String getName() {
50 public void setName(String name) {
54 public String getFile() {
58 public void setFile(String file) {
62 public String getRepository() {
66 public void setRepository(String repository) {
67 this.repository = repository;
70 public String getNamespace_uri() {
74 public void setNamespace_uri(String namespace_uri) {
75 this.namespace_uri = namespace_uri;
78 public String getNamespace_prefix() {
79 return namespace_prefix;
82 public void setNamespace_prefix(String namespace_prefix) {
83 this.namespace_prefix = namespace_prefix;
86 //gets Type description for Yaml snake
87 public static TypeDescription getTypeDescription(){
88 TypeDescription typeDescription = new TypeDescription(ToscaImportsDefinition.class);
89 return typeDescription;