/* * Sonar C# Plugin :: StyleCop * Copyright (C) 2010 Jose Chillan, Alexandre Victoor and SonarSource * dev@sonar.codehaus.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ /* * Created on May 19, 2009 */ package org.sonar.plugins.csharp.stylecop.profiles.utils; /** * A configuration rule for StyleCop. * * @author Jose CHILLAN May 19, 2009 */ public class StyleCopRule { private String analyzerId; private String category; private String name; private String priority; private boolean enabled; /** * Constructs a @link{StyleCopRule}. */ public StyleCopRule() { } /** * Returns the category. * * @return The category to return. */ public String getCategory() { return this.category; } /** * Sets the category. * * @param category * The category to set. */ public void setCategory(String category) { this.category = category; } /** * Returns the name. * * @return The name to return. */ public String getName() { return this.name; } /** * Sets the name. * * @param name * The name to set. */ public void setName(String name) { this.name = name; } /** * Returns the enabled. * * @return The enabled to return. */ public boolean isEnabled() { return this.enabled; } /** * Sets the enabled. * * @param enabled * The enabled to set. */ public void setEnabled(boolean enabled) { this.enabled = enabled; } /** * Returns the analyzerId. * * @return The analyzerId to return. */ public String getAnalyzerId() { return this.analyzerId; } /** * Sets the analyzerId. * * @param analyzerId * The analyzerId to set. */ public void setAnalyzerId(String analyzerId) { this.analyzerId = analyzerId; } /** * Get the sonar priority of this rule * * @return the sonar priority */ public String getPriority() { return priority; } /** * Set the sonar priority of this rule * * @param priority * sonar priority */ public void setPriority(String priority) { this.priority = priority; } }