hudson.plugins.serenitec.util
Class Project

java.lang.Object
  extended by hudson.plugins.serenitec.util.model.EntriesContainer
      extended by hudson.plugins.serenitec.util.Project
All Implemented Interfaces:
EntriesProvider, java.io.Serializable

public class Project
extends EntriesContainer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.plugins.serenitec.util.model.EntriesContainer
EntriesContainer.Hierarchy
 
Constructor Summary
Project()
          Creates a new instance of JavaProject.
 
Method Summary
 void addError(java.lang.String additionalError)
          Appends the error message to the project error messages.
 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  java.util.Collection<? extends EntriesContainer> getChildren()
          Returns the children containers of this container.
 java.lang.String getError()
          Returns the error message that denotes that why project creation has been failed.
 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.serenitec.util.model.EntriesContainer
addEntries, addEntries, addEntries, addEntry, containsModule, containsPackage, getAnnotationBound, getAnnotations, getContainer, getEntries, getEntriesByName, getEntriesBySeverity, getEntriesFixed, getEntriesNotFixed, getMaxSeverityDiscovered, getModifiedFiles, getModule, getModules, getModulesByName, getName, getNumberOfEntry, getNumberOfFixedEntry, getNumberOfNewEntry, getNumberOfNotFixedEntry, getNumberOfPointeurs, getNumberOfRules, getNumberOfSeverityDesign, getNumberOfSeverityDesignPatterns, getNumberOfSeverityFormatage, getNumberOfSeverityFormatagePatterns, getNumberOfSeverityHighSecurity, getNumberOfSeverityHighSecurityPatterns, getNumberOfSeverityLowSecurity, getNumberOfSeverityLowSecurityPatterns, getNumberOfSeverityPerformance, getNumberOfSeverityPerformancePatterns, getPackage, getPackageCategoryName, getPackages, getPointeur, getPointeurs, getRules, getToolTip, getTopFiveEntries, hasAnnotations, IsFixed, rebuildMappings, setHierarchy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()
Creates a new instance of JavaProject.

Method Detail

addError

public void addError(java.lang.String additionalError)
Appends the error message to the project error messages.

Parameters:
additionalError - the new error message to add

addModule

public void addModule(MavenModule module)
Adds the specified module with its annotations to this project.

Parameters:
module - the module to add

addModules

public void addModules(java.util.Collection<MavenModule> modules)
Adds the specified modules with their annotations to this project.

Parameters:
modules - the modules to add

getChildren

protected java.util.Collection<? extends EntriesContainer> getChildren()
Returns the children containers of this container. If we are already at the leaf level, then an empty collection is returned.

Specified by:
getChildren in class EntriesContainer
Returns:
the children containers of this container.

getError

public java.lang.String getError()
Returns the error message that denotes that why project creation has been failed.

Returns:
the error message that denotes that why project creation has been failed.

getWorkspacePath

public java.lang.String getWorkspacePath()
Returns the root path of the workspace files.

Returns:
the workspace path

hasError

public boolean hasError()
Returns whether a module with an error is part of this project.

Returns:
true if at least one module has an error.

setError

public void setError(java.lang.String error)
Sets the error message that denotes that why project creation has been failed.

Parameters:
error - the new error message

setWorkspacePath

public void setWorkspacePath(java.lang.String workspacePath)
Sets the root path of the workspace files.

Parameters:
workspacePath - path to workspace


Copyright © 2008. All Rights Reserved.