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 java.lang.Object
EXPERIMENTAL - will be used in version 2.2
- Since:
- 2.1
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
key
protected java.lang.String key
configKey
protected java.lang.String configKey
priority
protected Priority priority
isoCategory
protected IsoCategory isoCategory
properties
protected java.util.List<CheckTemplateProperty> properties
CheckTemplate
public CheckTemplate(java.lang.String key)
CheckTemplate
public CheckTemplate()
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String s)
getPriority
public Priority getPriority()
setPriority
public void setPriority(Priority p)
getIsoCategory
public IsoCategory getIsoCategory()
setIsoCategory
public void setIsoCategory(IsoCategory c)
getConfigKey
public java.lang.String getConfigKey()
setConfigKey
public void setConfigKey(java.lang.String configKey)
getTitle
public abstract java.lang.String getTitle(java.util.Locale locale)
getDescription
public abstract java.lang.String getDescription(java.util.Locale locale)
getMessage
public abstract java.lang.String getMessage(java.util.Locale locale,
java.lang.String key,
java.lang.Object... params)
getProperties
public java.util.List<CheckTemplateProperty> getProperties()
addProperty
public void addProperty(CheckTemplateProperty p)
getProperty
public CheckTemplateProperty getProperty(java.lang.String key)
equals
public final boolean equals(java.lang.Object o)
- Checks are equal within the same plugin. Two plugins can have two different checks with the same key.
- Overrides:
equals
in class java.lang.Object
hashCode
public final int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2009-2010 SonarSource SA. All Rights Reserved.