|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.pmd.util.model.AnnotationContainer
hudson.plugins.pmd.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. |
protected void |
annotationAdded(FileAnnotation annotation)
Creates the mapping of modules. |
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)
Returns the file with the given name. |
java.util.Collection<WorkspaceFile> |
getFiles()
Gets the files of this project 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.pmd.util.model.AnnotationContainer |
|---|
addAnnotation, addAnnotations, addAnnotations, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getNumberOfAnnotations, getToolTip, hasAnnotations, hasAnnotations, hasAnnotations, rebuildPriorities |
| 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 MavenModule getModule(java.lang.String moduleName)
moduleName - the module to get
public java.util.Collection<JavaPackage> getPackages()
public JavaPackage getPackage(java.lang.String name)
name - the package name
public java.util.Collection<WorkspaceFile> getFiles()
public WorkspaceFile getFile(java.lang.String name)
name - the file name
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 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 | |||||||||