|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.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. |
String |
getDisplayName()
Get the display name of this file. |
long |
getLastModified()
Get the last modified time of the file. |
SortedMap<Integer,String> |
getLines()
Get a sorted map of lines. |
Map<Integer,Set<Violation>> |
getLineViolationMap()
Get a map of line number to a set of violations. |
File |
getSourceFile()
Get the source file. |
TreeMap<String,TreeSet<Violation>> |
getTypeMap()
Get the map of types to violations. |
void |
setDisplayName(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(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 String getDisplayName()
public void setDisplayName(String name)
name - the name to use.public File getSourceFile()
public void setSourceFile(File sourceFile)
sourceFile - the value to use.public void setLastModified(long lastModified)
lastModified - the time to use.public long getLastModified()
public Map<Integer,Set<Violation>> getLineViolationMap()
public SortedMap<Integer,String> getLines()
public TreeMap<String,TreeSet<Violation>> getTypeMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||