001    /*
002     * Sonar, open source software quality management tool.
003     * Copyright (C) 2008-2011 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.api.web.gwt.client.webservices;
021    
022    /**
023     * @deprecated since 2.5, use {@link org.sonar.wsclient.services.Violation} instead.
024     */
025    @Deprecated
026    public class Violation {
027    
028      private String message;
029      private String priority;
030      private int line;
031      private Rule rule;
032      private Resource resource;
033    
034      public Violation(String message, String priority, int line, Rule rule, Resource resource) {
035        this.message = message;
036        this.priority = priority;
037        this.line = line;
038        this.rule = rule;
039        this.resource = resource;
040      }
041    
042      public Violation() {
043      }
044    
045      public String getMessage() {
046        return message;
047      }
048    
049      public void setMessage(String message) {
050        this.message = message;
051      }
052    
053      public String getPriority() {
054        return priority;
055      }
056    
057      public void setPriority(String priority) {
058        this.priority = priority;
059      }
060    
061      public int getLine() {
062        return line;
063      }
064    
065      public void setLine(int line) {
066        this.line = line;
067      }
068    
069      public Rule getRule() {
070        return rule;
071      }
072    
073      public void setRule(Rule rule) {
074        this.rule = rule;
075      }
076    
077      public Resource getResource() {
078        return resource;
079      }
080    
081      public void setResource(Resource resource) {
082        this.resource = resource;
083      }
084    }