2 * Copyright 2017 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.cli.fw.output;
19 import org.onap.cli.fw.input.ParameterType;
21 import java.util.ArrayList;
22 import java.util.List;
25 * Onap command output records, helps to define the title and its description while command is defined and during run
26 * time, it captures the value of the output as well.
28 public class OnapCommandResultAttribute {
33 private String outName;
38 private String outDescription;
41 * Output values, in case list out, it holds values for all rows for show output, it will have one value
43 private List<String> values = new ArrayList<>();
48 private OnapCommandResultAttributeScope outScope = OnapCommandResultAttributeScope.SHORT;
50 private ParameterType paramType = ParameterType.STRING;
52 private boolean isSecured = false;
54 public void setValues(List<String> values) {
58 public String getName() {
62 public void setName(String name) {
66 public String getDescription() {
67 return outDescription;
70 public void setDescription(String description) {
71 this.outDescription = description;
74 public List<String> getValues() {
78 public OnapCommandResultAttributeScope getScope() {
82 public void setScope(OnapCommandResultAttributeScope scope) {
83 this.outScope = scope;
86 public ParameterType getType() {
90 public void setType(ParameterType type) {
91 this.paramType = type;
94 public boolean isSecured() {
98 public void setSecured(boolean isSecured) {
99 this.isSecured = isSecured;