001 /* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2009 SonarSource SA 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 public class Violation extends Model { 023 024 private String message = null; 025 private String priority = null; 026 private Integer line = null; 027 private String ruleKey = null; 028 private String ruleName = null; 029 private String resourceKey = null; 030 private String resourceName = null; 031 private String resourceScope = null; 032 private String resourceQualifier = null; 033 034 public String getMessage() { 035 return message; 036 } 037 038 public void setMessage(String message) { 039 this.message = message; 040 } 041 042 public String getPriority() { 043 return priority; 044 } 045 046 public void setPriority(String priority) { 047 this.priority = priority; 048 } 049 050 public Integer getLine() { 051 return line; 052 } 053 054 public void setLine(Integer line) { 055 this.line = line; 056 } 057 058 public String getResourceKey() { 059 return resourceKey; 060 } 061 062 public void setResourceKey(String resourceKey) { 063 this.resourceKey = resourceKey; 064 } 065 066 public String getRuleKey() { 067 return ruleKey; 068 } 069 070 public Violation setRuleKey(String s) { 071 this.ruleKey = s; 072 return this; 073 } 074 075 public String getRuleName() { 076 return ruleName; 077 } 078 079 public Violation setRuleName(String ruleName) { 080 this.ruleName = ruleName; 081 return this; 082 } 083 084 public String getResourceName() { 085 return resourceName; 086 } 087 088 public Violation setResourceName(String resourceName) { 089 this.resourceName = resourceName; 090 return this; 091 } 092 093 public String getResourceScope() { 094 return resourceScope; 095 } 096 097 public Violation setResourceScope(String resourceScope) { 098 this.resourceScope = resourceScope; 099 return this; 100 } 101 102 public String getResourceQualifier() { 103 return resourceQualifier; 104 } 105 106 public Violation setResourceQualifier(String resourceQualifier) { 107 this.resourceQualifier = resourceQualifier; 108 return this; 109 } 110 }