763a44c0dd953c639c671290f30b4fa5836fe75f
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * eCOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
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  * ================================================================================
19  */
20 package org.openecomp.portalsdk.analytics.model.base;
21
22 public class IdNameValue {
23         private String id = null;
24
25         private String name = null;
26         
27         private boolean defaultValue = false;
28         
29         private boolean readOnly = false;
30
31         public IdNameValue() {
32                 super();
33         }
34
35         public IdNameValue(String id, String name) {
36                 this();
37
38                 setId(id);
39                 setName(name);
40                 setDefaultValue(false);
41                 
42         } // IdNameValue
43
44         public IdNameValue(String id, String name, boolean defaultValue) {
45                 this();
46
47                 setId(id);
48                 setName(name);
49                 setDefaultValue(defaultValue);
50         } // IdNameValue
51         
52         public IdNameValue(String id, String name, boolean defaultValue, boolean readOnly) {
53                 this();
54
55                 setId(id);
56                 setName(name);
57                 setDefaultValue(defaultValue);
58                 setReadOnly(readOnly);
59         } // IdNameValue
60
61         public String getId() {
62                 return id;
63         }
64
65         public String getName() {
66                 return name;
67         }
68
69         public void setId(String id) {
70                 this.id = id;
71         }
72
73         public void setName(String name) {
74                 this.name = name;
75         }
76
77         public boolean isDefaultValue() {
78                 return defaultValue;
79         }
80
81         public void setDefaultValue(boolean defaultValue) {
82                 this.defaultValue = defaultValue;
83         }
84
85         /**
86          * @return the visibility
87          */
88         public boolean isReadOnly() {
89                 return readOnly;
90         }
91
92         /**
93          * @param readOnly the value to set
94          */
95         public void setReadOnly(boolean readOnly) {
96                 this.readOnly = readOnly;
97         }       
98         
99         
100 } // IdNameValue