|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.serenitec.util.model.EntriesContainer
public abstract class EntriesContainer
A container for annotations.
| Nested Class Summary | |
|---|---|
static class |
EntriesContainer.Hierarchy
The hierarchy of a container. |
| Constructor Summary | |
|---|---|
|
EntriesContainer(EntriesContainer.Hierarchy hierarchy)
Creates a new instance of AnnotationContainer. |
protected |
EntriesContainer(java.lang.String name,
EntriesContainer.Hierarchy hierarchy)
Creates a new instance of AnnotationContainer. |
| Method Summary | |
|---|---|
void |
addEntries(java.util.Collection<? extends ReportEntry> newentry)
Adds the specified annotations to this container. |
void |
addEntries(java.util.Collection<? extends ReportEntry> detectedEntries,
hudson.model.AbstractBuild<?,?> build)
|
void |
addEntries(ReportEntry[] newAnnotations)
Adds the specified annotations to this container. |
void |
addEntry(ReportEntry entry)
Adds the specified annotation to this container. |
boolean |
containsModule(java.lang.String moduleName)
Returns whether the maven module with the given name exists. |
boolean |
containsPackage(java.lang.String packageName)
Returns whether the package with the given name exists. |
int |
getAnnotationBound()
Gets the maximum number of annotations within the elements of the child hierarchy. |
java.util.Collection<ReportEntry> |
getAnnotations()
|
protected abstract java.util.Collection<? extends EntriesContainer> |
getChildren()
Returns the children containers of this container. |
EntriesContainer |
getContainer()
Returns this container. |
java.util.List<ReportEntry> |
getEntries()
return entries |
java.util.Map<java.lang.String,java.util.ArrayList<ReportEntry>> |
getEntriesByName()
|
java.util.Map<java.lang.Integer,java.util.ArrayList<ReportEntry>> |
getEntriesBySeverity()
|
java.util.List<ReportEntry> |
getEntriesFixed()
|
java.util.List<ReportEntry> |
getEntriesNotFixed()
|
int |
getMaxSeverityDiscovered()
|
java.util.List<java.lang.String> |
getModifiedFiles()
|
MavenModule |
getModule(java.lang.String moduleName)
Gets the module with the given name. |
java.util.Collection<MavenModule> |
getModules()
Gets the modules of this container that have annotations. |
java.util.Map<java.lang.String,MavenModule> |
getModulesByName()
|
java.lang.String |
getName()
Returns the name of this container. |
int |
getNumberOfEntry()
|
int |
getNumberOfFixedEntry()
|
int |
getNumberOfNewEntry()
|
int |
getNumberOfNotFixedEntry()
|
int |
getNumberOfPointeurs()
|
int |
getNumberOfRules()
|
int |
getNumberOfSeverityDesign()
|
int |
getNumberOfSeverityDesignPatterns()
|
int |
getNumberOfSeverityFormatage()
|
int |
getNumberOfSeverityFormatagePatterns()
|
int |
getNumberOfSeverityHighSecurity()
|
int |
getNumberOfSeverityHighSecurityPatterns()
|
int |
getNumberOfSeverityLowSecurity()
|
int |
getNumberOfSeverityLowSecurityPatterns()
|
int |
getNumberOfSeverityPerformance()
|
int |
getNumberOfSeverityPerformancePatterns()
|
Package |
getPackage(java.lang.String packageName)
Gets the package with the given name. |
java.lang.String |
getPackageCategoryName()
Returns the package category name for the scanned files. |
java.util.Collection<Package> |
getPackages()
Gets the packages of this container that have annotations. |
ReportPointeur |
getPointeur(int key)
Returns the pointeur identified by its key number |
java.util.List<ReportPointeur> |
getPointeurs()
|
java.util.List<ReportEntry> |
getRules()
|
java.lang.String |
getToolTip()
Returns a tooltip showing the distribution of priorities for this container. |
java.util.List<ReportEntry> |
getTopFiveEntries()
|
boolean |
hasAnnotations()
|
boolean |
IsFixed()
Return true if all the patterns have been fixed |
protected void |
rebuildMappings()
Rebuilds the priorities and files after deserialization. |
protected void |
setHierarchy(EntriesContainer.Hierarchy hierarchy)
Sets the hierarchy to the specified value. |
void |
setName(java.lang.String name)
Sets the name of this container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntriesContainer(EntriesContainer.Hierarchy hierarchy)
AnnotationContainer.
hierarchy - the hierarchy of this container
protected EntriesContainer(java.lang.String name,
EntriesContainer.Hierarchy hierarchy)
AnnotationContainer.
name - the name of this containerhierarchy - the hierarchy of this container| Method Detail |
|---|
public final void addEntries(java.util.Collection<? extends ReportEntry> newentry)
newAnnotations - the annotations to add
public final void addEntries(java.util.Collection<? extends ReportEntry> detectedEntries,
hudson.model.AbstractBuild<?,?> build)
public final void addEntries(ReportEntry[] newAnnotations)
newAnnotations - the annotations to addpublic final void addEntry(ReportEntry entry)
annotation - the annotation to addpublic boolean containsModule(java.lang.String moduleName)
moduleName - the module to check for
true if the maven module with the given name exists, false otherwisepublic boolean containsPackage(java.lang.String packageName)
packageName - the package to check for
true if the package with the given name exists, false otherwisepublic final int getAnnotationBound()
public final java.util.Collection<ReportEntry> getAnnotations()
protected abstract java.util.Collection<? extends EntriesContainer> getChildren()
public EntriesContainer getContainer()
public ReportPointeur getPointeur(int key)
key -
public java.util.List<java.lang.String> getModifiedFiles()
public final java.util.List<ReportEntry> getRules()
getRules in interface EntriesProviderpublic final java.util.List<ReportEntry> getEntries()
EntriesProvider
getEntries in interface EntriesProviderpublic final java.util.Map<java.lang.String,java.util.ArrayList<ReportEntry>> getEntriesByName()
public final java.util.Map<java.lang.Integer,java.util.ArrayList<ReportEntry>> getEntriesBySeverity()
public final java.util.List<ReportEntry> getEntriesFixed()
getEntriesFixed in interface EntriesProviderpublic java.util.List<ReportEntry> getEntriesNotFixed()
getEntriesNotFixed in interface EntriesProviderpublic int getMaxSeverityDiscovered()
getMaxSeverityDiscovered in interface EntriesProviderpublic MavenModule getModule(java.lang.String moduleName)
moduleName - the name of the module
public java.util.Collection<MavenModule> getModules()
public final java.util.Map<java.lang.String,MavenModule> getModulesByName()
public final java.lang.String getName()
public int getNumberOfRules()
getNumberOfRules in interface EntriesProviderpublic int getNumberOfEntry()
getNumberOfEntry in interface EntriesProviderpublic int getNumberOfNewEntry()
getNumberOfNewEntry in interface EntriesProviderpublic int getNumberOfFixedEntry()
getNumberOfFixedEntry in interface EntriesProviderpublic int getNumberOfNotFixedEntry()
getNumberOfNotFixedEntry in interface EntriesProviderpublic int getNumberOfPointeurs()
getNumberOfPointeurs in interface EntriesProviderpublic int getNumberOfSeverityDesignPatterns()
getNumberOfSeverityDesignPatterns in interface EntriesProviderpublic int getNumberOfSeverityFormatagePatterns()
getNumberOfSeverityFormatagePatterns in interface EntriesProviderpublic int getNumberOfSeverityHighSecurityPatterns()
getNumberOfSeverityHighSecurityPatterns in interface EntriesProviderpublic int getNumberOfSeverityLowSecurityPatterns()
getNumberOfSeverityLowSecurityPatterns in interface EntriesProviderpublic int getNumberOfSeverityPerformancePatterns()
getNumberOfSeverityPerformancePatterns in interface EntriesProviderpublic int getNumberOfSeverityDesign()
getNumberOfSeverityDesign in interface EntriesProviderpublic int getNumberOfSeverityFormatage()
getNumberOfSeverityFormatage in interface EntriesProviderpublic int getNumberOfSeverityHighSecurity()
getNumberOfSeverityHighSecurity in interface EntriesProviderpublic int getNumberOfSeverityLowSecurity()
getNumberOfSeverityLowSecurity in interface EntriesProviderpublic int getNumberOfSeverityPerformance()
getNumberOfSeverityPerformance in interface EntriesProviderpublic Package getPackage(java.lang.String packageName)
packageName - the name of the package
public final java.lang.String getPackageCategoryName()
public java.util.Collection<Package> getPackages()
public final java.util.List<ReportPointeur> getPointeurs()
public java.lang.String getToolTip()
public final java.util.List<ReportEntry> getTopFiveEntries()
getTopFiveEntries in interface EntriesProviderpublic final boolean hasAnnotations()
public final boolean IsFixed()
protected void rebuildMappings()
protected void setHierarchy(EntriesContainer.Hierarchy hierarchy)
hierarchy - the value to setpublic final void setName(java.lang.String name)
name - the name of this container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||