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.dashboard; 021 022public final class WidgetPropertyDto { 023 private Long id; 024 private Long widgetId; 025 private String key; 026 private String value; 027 028 /** 029 * @return the id 030 */ 031 public Long getId() { 032 return id; 033 } 034 035 /** 036 * @param id the id to set 037 */ 038 public WidgetPropertyDto setId(Long id) { 039 this.id = id; 040 return this; 041 } 042 043 /** 044 * @return the widgetId 045 */ 046 public Long getWidgetId() { 047 return widgetId; 048 } 049 050 /** 051 * @param widgetId the widgetId to set 052 */ 053 public WidgetPropertyDto setWidgetId(Long widgetId) { 054 this.widgetId = widgetId; 055 return this; 056 } 057 058 /** 059 * @return the key 060 */ 061 public String getKey() { 062 return key; 063 } 064 065 /** 066 * @param key the key to set 067 */ 068 public WidgetPropertyDto setKey(String key) { 069 this.key = key; 070 return this; 071 } 072 073 /** 074 * @return the value 075 */ 076 public String getValue() { 077 return value; 078 } 079 080 /** 081 * @param value the value to set 082 */ 083 public WidgetPropertyDto setValue(String value) { 084 this.value = value; 085 return this; 086 } 087}