|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.model.AnnotationContainer
hudson.plugins.findbugs.util.model.JavaProject
public class JavaProject
A serializable Java Bean class representing a project that has been built by Hudson.
| Constructor Summary | |
|---|---|
JavaProject()
|
|
| Method Summary | |
|---|---|
void |
addFiles(java.util.Collection<WorkspaceFile> files)
Adds the specified annotations of the given files to this container. |
void |
addModule(MavenModule module)
Adds the specified module with its annotations to this project. |
void |
addModules(java.util.Collection<MavenModule> modules)
Adds the specified modules with their annotations to this project. |
protected void |
annotationAdded(FileAnnotation annotation)
Creates the mapping of modules. |
boolean |
containsModule(java.lang.String moduleName)
Returns whether the maven module with the given name exists. |
int |
getAnnotationBound()
Gets the maximum number of tasks in a module. |
java.lang.String |
getError()
Returns the error message that denotes that why project creation has been failed. |
WorkspaceFile |
getFile(java.lang.String name)
Gets the file with the given name. |
java.util.Collection<WorkspaceFile> |
getFiles()
Gets the files of this container that have annotations. |
MavenModule |
getModule(java.lang.String moduleName)
Returns the maven module with the given name. |
java.util.Collection<MavenModule> |
getModules()
Gets the modules of this project that have annotations. |
JavaPackage |
getPackage(java.lang.String name)
Returns the package with the given name. |
java.util.Collection<JavaPackage> |
getPackages()
Gets the packages of this project that have annotations. |
java.lang.String |
getWorkspacePath()
Returns the root path of the workspace files. |
boolean |
hasError()
Returns whether a module with an error is part of this project. |
void |
setError(java.lang.String error)
Sets the error message that denotes that why project creation has been failed. |
void |
setWorkspacePath(java.lang.String workspacePath)
Sets the root path of the workspace files. |
| Methods inherited from class hudson.plugins.findbugs.util.model.AnnotationContainer |
|---|
addAnnotation, addAnnotations, addAnnotations, addFile, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getName, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getPackageCategoryName, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildMappings, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaProject()
| Method Detail |
|---|
public void addFiles(java.util.Collection<WorkspaceFile> files)
files - the files to get the annotations fromprotected void annotationAdded(FileAnnotation annotation)
annotationAdded in class AnnotationContainerannotation - the added annotationpublic java.util.Collection<MavenModule> getModules()
public boolean containsModule(java.lang.String moduleName)
moduleName - the module to check for
true if the maven module with the given name
exists, false otherwisepublic MavenModule getModule(java.lang.String moduleName)
moduleName - the module to get
containsModule(String)public java.util.Collection<JavaPackage> getPackages()
public JavaPackage getPackage(java.lang.String name)
name - the package name
public java.util.Collection<WorkspaceFile> getFiles()
getFiles in class AnnotationContainerpublic WorkspaceFile getFile(java.lang.String name)
getFile in class AnnotationContainername - the short name of the file
public void setWorkspacePath(java.lang.String workspacePath)
workspacePath - path to workspacepublic java.lang.String getWorkspacePath()
public int getAnnotationBound()
public void addModule(MavenModule module)
module - the module to addpublic void addModules(java.util.Collection<MavenModule> modules)
modules - the modules to addpublic boolean hasError()
true if at least one module has an error.public void setError(java.lang.String error)
error - the new error messagepublic java.lang.String getError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||