|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.plugins.violations.TypeDescriptor
public abstract class TypeDescriptor
A descriptor for a violation type. This contains a name and an parser class for the violation type. The types are (currently) also contains in the class as a static - TYPES.
Field Summary | |
---|---|
static java.util.TreeMap<java.lang.String,TypeDescriptor> |
TYPES
The map of types to type descriptors. |
Constructor Summary | |
---|---|
protected |
TypeDescriptor(java.lang.String name)
Create a type descriptor for a type. |
Method Summary | |
---|---|
static void |
addDescriptor(TypeDescriptor t)
Add a violations type descriptor. |
abstract ViolationsParser |
createParser()
Get a new parser for the type. |
java.lang.String |
getDetailForSource(java.lang.String source)
Get a detailed description of a violation source. |
java.util.List<java.lang.String> |
getMavenTargets()
Get a list of target xml files to look for for this particular type. |
java.lang.String |
getName()
Get the name of the type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.TreeMap<java.lang.String,TypeDescriptor> TYPES
Constructor Detail |
---|
protected TypeDescriptor(java.lang.String name)
name
- the name of the type.Method Detail |
---|
public java.lang.String getName()
public abstract ViolationsParser createParser()
public static void addDescriptor(TypeDescriptor t)
t
- the violations type descriptor to add.public java.lang.String getDetailForSource(java.lang.String source)
source
- the code name for the violation.
public java.util.List<java.lang.String> getMavenTargets()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |