org.sonar.api.checks.templates
Class CheckTemplate

java.lang.Object
  extended by org.sonar.api.checks.templates.CheckTemplate
Direct Known Subclasses:
BundleCheckTemplate, DefaultCheckTemplate

public abstract class CheckTemplate
extends Object

EXPERIMENTAL - will be used in version 2.2

Since:
2.1

Field Summary
protected  String configKey
           
protected  IsoCategory isoCategory
           
protected  String key
           
protected  Priority priority
           
protected  List<CheckTemplateProperty> properties
           
 
Constructor Summary
CheckTemplate()
           
CheckTemplate(String key)
           
 
Method Summary
 void addProperty(CheckTemplateProperty p)
           
 boolean equals(Object o)
          Checks are equal within the same plugin.
 String getConfigKey()
           
abstract  String getDescription(Locale locale)
           
 IsoCategory getIsoCategory()
           
 String getKey()
           
abstract  String getMessage(Locale locale, String key, Object... params)
           
 Priority getPriority()
           
 List<CheckTemplateProperty> getProperties()
           
 CheckTemplateProperty getProperty(String key)
           
abstract  String getTitle(Locale locale)
           
 int hashCode()
           
 void setConfigKey(String configKey)
           
 void setIsoCategory(IsoCategory c)
           
 void setKey(String s)
           
 void setPriority(Priority p)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected String key

configKey

protected String configKey

priority

protected Priority priority

isoCategory

protected IsoCategory isoCategory

properties

protected List<CheckTemplateProperty> properties
Constructor Detail

CheckTemplate

public CheckTemplate(String key)

CheckTemplate

public CheckTemplate()
Method Detail

getKey

public String getKey()

setKey

public void setKey(String s)

getPriority

public Priority getPriority()

setPriority

public void setPriority(Priority p)

getIsoCategory

public IsoCategory getIsoCategory()

setIsoCategory

public void setIsoCategory(IsoCategory c)

getConfigKey

public String getConfigKey()

setConfigKey

public void setConfigKey(String configKey)

getTitle

public abstract String getTitle(Locale locale)

getDescription

public abstract String getDescription(Locale locale)

getMessage

public abstract String getMessage(Locale locale,
                                  String key,
                                  Object... params)

getProperties

public List<CheckTemplateProperty> getProperties()

addProperty

public void addProperty(CheckTemplateProperty p)

getProperty

public CheckTemplateProperty getProperty(String key)

equals

public final boolean equals(Object o)
Checks are equal within the same plugin. Two plugins can have two different checks with the same key.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2010 SonarSource SA. All Rights Reserved.