|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.plugins.violations.model.FileModel
public class FileModel
A class contains the violations for a particular file. The number of violations are limited.
Nested Class Summary | |
---|---|
static class |
FileModel.LimitType
A overview class for each type. |
Constructor Summary | |
---|---|
FileModel()
|
Method Summary | |
---|---|
void |
addLimitType(java.lang.String type,
int number,
int suppressed)
Add summary object for a type of violation. |
void |
addViolation(Violation v)
Add a violation to the file model. |
java.lang.String |
getDisplayName()
Get the display name of this file. |
long |
getLastModified()
Get the last modified time of the file. |
java.util.SortedMap<java.lang.String,FileModel.LimitType> |
getLimitTypeMap()
Get a map of type to limit type. |
java.util.SortedMap<java.lang.Integer,java.lang.String> |
getLines()
Get a sorted map of lines. |
java.util.Map<java.lang.Integer,java.util.Set<Violation>> |
getLineViolationMap()
Get a map of line number to a set of violations. |
java.io.File |
getSourceFile()
Get the source file. |
java.util.TreeMap<java.lang.String,java.util.TreeSet<Violation>> |
getTypeMap()
Get the map of types to violations. |
void |
setDisplayName(java.lang.String name)
Set thr name to use to display this file. |
void |
setLastModified(long lastModified)
Set the last modified time of the file. |
void |
setSourceFile(java.io.File sourceFile)
Set the source file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileModel()
Method Detail |
---|
public java.util.SortedMap<java.lang.String,FileModel.LimitType> getLimitTypeMap()
public void addLimitType(java.lang.String type, int number, int suppressed)
type
- the type of violation.number
- the number of violations of that type in this file.suppressed
- the number of violations not shown for this file.public void addViolation(Violation v)
v
- the violation to add.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String name)
name
- the name to use.public java.io.File getSourceFile()
public void setSourceFile(java.io.File sourceFile)
sourceFile
- the value to use.public void setLastModified(long lastModified)
lastModified
- the time to use.public long getLastModified()
public java.util.Map<java.lang.Integer,java.util.Set<Violation>> getLineViolationMap()
public java.util.SortedMap<java.lang.Integer,java.lang.String> getLines()
public java.util.TreeMap<java.lang.String,java.util.TreeSet<Violation>> getTypeMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |