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 */ 020 package org.sonar.wsclient.services; 021 022 import java.util.List; 023 024 /** 025 * @since 2.5 026 */ 027 public class Rule extends Model { 028 029 private String title = null; 030 private String key = null; 031 private String configKey = null; 032 private String repository = null; 033 private String description = null; 034 private String severity = null; 035 private List<RuleParam> params; 036 private boolean active; 037 038 public String getTitle() { 039 return title; 040 } 041 042 public Rule setTitle(String title) { 043 this.title = title; 044 return this; 045 } 046 047 public String getKey() { 048 return key; 049 } 050 051 public Rule setKey(String key) { 052 this.key = key; 053 return this; 054 } 055 056 /** 057 * @since 2.7 058 */ 059 public String getConfigKey() { 060 return configKey; 061 } 062 063 /** 064 * @since 2.7 065 */ 066 067 public Rule setConfigKey(String s) { 068 this.configKey = s; 069 return this; 070 } 071 072 public String getRepository() { 073 return repository; 074 } 075 076 public Rule setRepository(String s) { 077 this.repository = s; 078 return this; 079 } 080 081 public String getDescription() { 082 return description; 083 } 084 085 public Rule setDescription(String description) { 086 this.description = description; 087 return this; 088 } 089 090 public String getSeverity() { 091 return severity; 092 } 093 094 public Rule setSeverity(String severity) { 095 this.severity = severity; 096 return this; 097 } 098 099 public void setActive(boolean active) { 100 this.active = active; 101 } 102 103 public boolean isActive() { 104 return active; 105 } 106 107 public List<RuleParam> getParams() { 108 return params; 109 } 110 111 public void setParams(List<RuleParam> params) { 112 this.params = params; 113 } 114 115 }