2 * ================================================================================
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
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 * ================================================================================
20 package org.openecomp.portalsdk.analytics.model.base;
22 public class IdNameValue {
23 private String id = null;
25 private String name = null;
27 private boolean defaultValue = false;
29 private boolean readOnly = false;
31 public IdNameValue() {
35 public IdNameValue(String id, String name) {
40 setDefaultValue(false);
44 public IdNameValue(String id, String name, boolean defaultValue) {
49 setDefaultValue(defaultValue);
52 public IdNameValue(String id, String name, boolean defaultValue, boolean readOnly) {
57 setDefaultValue(defaultValue);
58 setReadOnly(readOnly);
61 public String getId() {
65 public String getName() {
69 public void setId(String id) {
73 public void setName(String name) {
77 public boolean isDefaultValue() {
81 public void setDefaultValue(boolean defaultValue) {
82 this.defaultValue = defaultValue;
86 * @return the visibility
88 public boolean isReadOnly() {
93 * @param readOnly the value to set
95 public void setReadOnly(boolean readOnly) {
96 this.readOnly = readOnly;