[SDC-31] add mising script got Comformance fix
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / ComponentInstanceAttribute.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.model;
22
23 import java.io.Serializable;
24
25 public class ComponentInstanceAttribute extends AttributeDefinition
26                 implements IComponentInstanceConnectedElement, Serializable {
27
28         /**
29          * 
30          */
31         private static final long serialVersionUID = -496828411269235795L;
32
33         private Boolean hidden;
34
35         /**
36          * The unique id of the attribute value on graph
37          */
38         private String valueUniqueUid;
39
40         public ComponentInstanceAttribute() {
41                 super();
42         }
43
44         public ComponentInstanceAttribute(AttributeDefinition pd, Boolean hidden, String valueUniqueUid) {
45                 super(pd);
46
47                 this.hidden = hidden;
48                 this.valueUniqueUid = valueUniqueUid;
49                 setParentUniqueId(pd.getParentUniqueId());
50         }
51
52         public ComponentInstanceAttribute(AttributeDefinition attributeDefinition) {
53                 super(attributeDefinition);
54         }
55
56         public String getValueUniqueUid() {
57                 return valueUniqueUid;
58         }
59
60         public void setValueUniqueUid(String valueUniqueUid) {
61                 this.valueUniqueUid = valueUniqueUid;
62         }
63
64         @Override
65         public String toString() {
66                 return "ComponentInstanceAttribute [ " + super.toString() + " , value=" + hidden + ", valueUniqueUid = "
67                                 + valueUniqueUid + " ]";
68         }
69
70         public Boolean isHidden() {
71                 return hidden;
72         }
73
74         public void setHidden(Boolean hidden) {
75                 this.hidden = hidden;
76         }
77
78 }