changed the header license to new license
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / search / filters / entity / UiFilterValueEntity.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * Copyright © 2017-2018 Amdocs
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.aai.sparky.search.filters.entity;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonInclude.Include;
25
26 /**
27  * This class represents a single item or value to populate the FE filter component with.
28  * A drop-down list, for example, may be populated with the values from several instances of this class.
29  */
30 @JsonInclude(Include.NON_NULL)
31 public class UiFilterValueEntity {
32   private String filterId;
33   private String filterValue;
34   private String displayName; // The string that will be rendered in the view
35
36   public UiFilterValueEntity() {}
37
38   public UiFilterValueEntity(String filterId, String filterValue, String displayName) {
39     this.filterId = filterId;
40     this.filterValue = filterValue;
41     this.displayName = displayName;
42   }
43
44   public String getFilterId() {
45     return filterId;
46   }
47
48   public String getFilterValue() {
49     return filterValue;
50   }
51
52   public String getDisplayName() {
53     return displayName;
54   }
55
56   public void setFilterId(String filterId) {
57     this.filterId = filterId;
58   }
59
60   public void setFilterValue(String filterValue) {
61     this.filterValue = filterValue;
62   }
63
64   public void setDisplayName(String displayName) {
65     this.displayName = displayName;
66   }
67
68   @Override
69   public String toString() {
70     return "UiFilterValueEntity [" + (filterId != null ? "filterId=" + filterId + ", " : "")
71         + (filterValue != null ? "filterValue=" + filterValue + ", " : "")
72         + (displayName != null ? "displayName=" + displayName : "") + "]";
73   }
74   
75   
76 }