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.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 repository = null;
032      private String description = null;
033      private String severity = null;
034      private List<RuleParam> params;
035      private boolean active;
036    
037      public String getTitle() {
038        return title;
039      }
040    
041      public Rule setTitle(String title) {
042        this.title = title;
043        return this;
044      }
045    
046      public String getKey() {
047        return key;
048      }
049    
050      public Rule setKey(String key) {
051        this.key = key;
052        return this;
053      }
054    
055      public String getRepository() {
056        return repository;
057      }
058    
059      public Rule setRepository(String s) {
060        this.repository = s;
061        return this;
062      }
063    
064      public String getDescription() {
065        return description;
066      }
067    
068      public Rule setDescription(String description) {
069        this.description = description;
070        return this;
071      }
072    
073      public String getSeverity() {
074        return severity;
075      }
076    
077      public Rule setSeverity(String severity) {
078        this.severity = severity;
079        return this;
080      }
081    
082      public void setActive(boolean active) {
083        this.active = active;
084      }
085    
086      public boolean isActive() {
087        return active;
088      }
089    
090      public List<RuleParam> getParams() {
091        return params;
092      }
093    
094      public void setParams(List<RuleParam> params) {
095        this.params = params;
096      }
097    
098    }