re base code
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / InputDataDefinition.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.be.datatypes.elements;
22
23 import java.util.Map;
24
25 public class InputDataDefinition extends PropertyDataDefinition {
26         
27         String label;
28         Boolean hidden;
29         Boolean immutable;
30         
31         public InputDataDefinition(){
32                 super();
33         }
34
35         public InputDataDefinition(Map<String, Object> pr) {
36                 super(pr);
37         }
38
39         public InputDataDefinition(InputDataDefinition p) {             
40                 super(p);
41                 this.setLabel(p.getLabel());
42                 this.setHidden( p.isHidden());
43                 this.setImmutable( p.isImmutable());
44         }
45         
46         public InputDataDefinition(PropertyDataDefinition p) {          
47                 super(p);
48         }
49         
50         public Boolean isHidden() {
51                 return hidden;
52         }
53
54         public void setHidden(Boolean hidden) {
55                 this.hidden = hidden;
56         }
57
58         public Boolean isImmutable() {
59                 return immutable;
60         }
61
62         public void setImmutable(Boolean immutable) {
63                 this.immutable = immutable;
64         }
65
66         public String getLabel() {
67                 return label;
68         }
69
70         public void setLabel(String label) {
71                 this.label = label;
72         }
73 }