2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.aai.sparky.search.filters.entity;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonInclude.Include;
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.
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
36 public UiFilterValueEntity() {}
38 public UiFilterValueEntity(String filterId, String filterValue, String displayName) {
39 this.filterId = filterId;
40 this.filterValue = filterValue;
41 this.displayName = displayName;
44 public String getFilterId() {
48 public String getFilterValue() {
52 public String getDisplayName() {
56 public void setFilterId(String filterId) {
57 this.filterId = filterId;
60 public void setFilterValue(String filterValue) {
61 this.filterValue = filterValue;
64 public void setDisplayName(String displayName) {
65 this.displayName = displayName;
69 public String toString() {
70 return "UiFilterValueEntity [" + (filterId != null ? "filterId=" + filterId + ", " : "")
71 + (filterValue != null ? "filterValue=" + filterValue + ", " : "")
72 + (displayName != null ? "displayName=" + displayName : "") + "]";