org.sonar.api.checks.templates
Class CheckTemplate
java.lang.Object
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
key
protected String key
configKey
protected String configKey
priority
protected Priority priority
isoCategory
protected IsoCategory isoCategory
properties
protected List<CheckTemplateProperty> properties
CheckTemplate
public CheckTemplate(String key)
CheckTemplate
public CheckTemplate()
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.