8af072493c51d00983297578b6dd61d144ce7b7c
[ccsdk/features.git] /
1 /*******************************************************************************
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt
4  * =================================================================================================
5  * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  ******************************************************************************/
18 package org.onap.ccsdk.features.sdnr.wt.common.configuration.subtypes;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 class SectionValue {
24
25     private String value;
26     private final List<String> comments;
27     private boolean isUncommented;
28
29     public SectionValue(String value, List<String> commentsForValue, boolean isuncommented) {
30         this.comments = commentsForValue;
31         this.value = value;
32         this.isUncommented = isuncommented;
33     }
34
35     public SectionValue(String value) {
36         this(value, new ArrayList<String>(), false);
37     }
38
39     public SectionValue(String value, boolean isUncommented) {
40         this(value, new ArrayList<String>(), isUncommented);
41         }
42
43     /* Getter / Setter */
44
45         public String getValue() {
46                 return value;
47         }
48
49         public SectionValue setValue(String value) {
50                 this.value = value;
51                 return this;
52         }
53
54         public boolean isUncommented() {
55                 return isUncommented;
56         }
57
58         public SectionValue setIsUncommented(boolean isUncommented) {
59                 this.isUncommented = isUncommented;
60                 return this;
61         }
62
63         public List<String> getComments() {
64                 return comments;
65         }
66
67         @Override
68         public String toString() {
69                 return "SectionValue [value=" + value + ", comments=" + comments + ", isUncommented=" + isUncommented + "]";
70         }
71
72
73 }