[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / common / openecomp-tosca-datatype / src / main / java / org / openecomp / sdc / tosca / datatypes / model / DataType.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.tosca.datatypes.model;
22
23 import java.util.List;
24 import java.util.Map;
25
26 public class DataType {
27
28   private String derived_from;
29   private String version;
30   private String description;
31   private List<Constraint> constraints;
32   private Map<String, PropertyDefinition> properties;
33
34   /**
35    * Gets derived from.
36    *
37    * @return the derived from
38    */
39   public String getDerived_from() {
40     return derived_from;
41   }
42
43   /**
44    * Sets derived from.
45    *
46    * @param derived_from the derived from
47    */
48   public void setDerived_from(String derived_from) {
49     this.derived_from = derived_from;
50   }
51
52   /**
53    * Gets version.
54    *
55    * @return the version
56    */
57   public String getVersion() {
58     return version;
59   }
60
61   /**
62    * Sets version.
63    *
64    * @param version the version
65    */
66   public void setVersion(String version) {
67     this.version = version;
68   }
69
70   /**
71    * Gets description.
72    *
73    * @return the description
74    */
75   public String getDescription() {
76     return description;
77   }
78
79   /**
80    * Sets description.
81    *
82    * @param description the description
83    */
84   public void setDescription(String description) {
85     this.description = description;
86   }
87
88   /**
89    * Gets constraints.
90    *
91    * @return the constraints
92    */
93   public List<Constraint> getConstraints() {
94     return constraints;
95   }
96
97   /**
98    * Sets constraints.
99    *
100    * @param constraints the constraints
101    */
102   public void setConstraints(List<Constraint> constraints) {
103     this.constraints = constraints;
104   }
105
106   /**
107    * Gets properties.
108    *
109    * @return the properties
110    */
111   public Map<String, PropertyDefinition> getProperties() {
112     return properties;
113   }
114
115   /**
116    * Sets properties.
117    *
118    * @param properties the properties
119    */
120   public void setProperties(Map<String, PropertyDefinition> properties) {
121     this.properties = properties;
122   }
123 }