|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.plugins.violations.model.FullFileModel
public class FullFileModel
A model of the violations in the a file. This is used during project action and it contains all the violations found. A subset of these are written to an xml file later.
Constructor Summary | |
---|---|
FullFileModel()
|
Method Summary | |
---|---|
void |
addViolation(Violation violation)
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.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 FullFileModel()
Method Detail |
---|
public void addViolation(Violation violation)
violation
- 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 |