001/* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2008-2012 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * Sonar is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * Sonar is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with Sonar; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 019 */ 020package org.sonar.core.filter; 021 022/** 023 * @since 3.1 024 */ 025public final class FilterColumnDto { 026 private Long id; 027 private Long filterId; 028 private String family; 029 private String key; 030 private Long orderIndex; 031 private String sortDirection; 032 private Boolean variation; 033 034 /** 035 * @return the id 036 */ 037 public Long getId() { 038 return id; 039 } 040 041 /** 042 * @return the family 043 */ 044 public String getFamily() { 045 return family; 046 } 047 048 /** 049 * @return the filter id 050 */ 051 public Long getFilterId() { 052 return filterId; 053 } 054 055 /** 056 * @return the key 057 */ 058 public String getKey() { 059 return key; 060 } 061 062 /** 063 * @return the order index 064 */ 065 public Long getOrderIndex() { 066 return orderIndex; 067 } 068 069 /** 070 * @return the sort direction 071 */ 072 public String getSortDirection() { 073 return sortDirection; 074 } 075 076 /** 077 * @return the variation 078 */ 079 public Boolean getVariation() { 080 return variation; 081 } 082 083 /** 084 * @param family the family to set 085 */ 086 public FilterColumnDto setFamily(String family) { 087 this.family = family; 088 return this; 089 } 090 091 /** 092 * @param family the id to set 093 */ 094 public FilterColumnDto setId(Long id) { 095 this.id = id; 096 return this; 097 } 098 099 /** 100 * @param filterId the filterId to set 101 */ 102 public FilterColumnDto setFilterId(Long filterId) { 103 this.filterId = filterId; 104 return this; 105 } 106 107 /** 108 * @param key the key to set 109 */ 110 public FilterColumnDto setKey(String key) { 111 this.key = key; 112 return this; 113 } 114 115 /** 116 * @param orderIndex the orderIndex to set 117 */ 118 public FilterColumnDto setOrderIndex(Long orderIndex) { 119 this.orderIndex = orderIndex; 120 return this; 121 } 122 123 /** 124 * @param sortDirection the sortDirection to set 125 */ 126 public FilterColumnDto setSortDirection(String sortDirection) { 127 this.sortDirection = sortDirection; 128 return this; 129 } 130 131 /** 132 * @param variation the variation to set 133 */ 134 public FilterColumnDto setVariation(Boolean variation) { 135 this.variation = variation; 136 return this; 137 } 138}