org.apache.maven.continuum.xmlrpc.project
Class AddingResult

java.lang.Object
  extended by org.apache.maven.continuum.xmlrpc.project.AddingResult
All Implemented Interfaces:
Serializable

public class AddingResult
extends Object
implements Serializable

This class is the result of add maven project action.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
AddingResult()
           
 
Method Summary
 void addError(String errorKey)
          Add an error that happened during adding the project to Continuum.
 void addProject(ProjectSummary projectSummary)
          Method addProject.
 void addProjectGroup(ProjectGroupSummary projectGroupSummary)
          Method addProjectGroup.
 List getErrors()
          Get the errors that happened during adding the project to Continuum.
 String getErrorsAsString()
          Returns a string representation of the errors.
 List<ProjectGroupSummary> getProjectGroups()
          Method getProjectGroups.
 List<ProjectSummary> getProjects()
          Method getProjects.
 boolean hasErrors()
          Quick check to see if there are any errors.
 void removeProject(ProjectSummary projectSummary)
          Method removeProject.
 void removeProjectGroup(ProjectGroupSummary projectGroupSummary)
          Method removeProjectGroup.
 void setProjectGroups(List<ProjectGroupSummary> projectGroups)
          Set the projectGroups field.
 void setProjects(List<ProjectSummary> projects)
          Set the projects field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddingResult

public AddingResult()
Method Detail

addProject

public void addProject(ProjectSummary projectSummary)
Method addProject.

Parameters:
projectSummary -

addProjectGroup

public void addProjectGroup(ProjectGroupSummary projectGroupSummary)
Method addProjectGroup.

Parameters:
projectGroupSummary -

getProjectGroups

public List<ProjectGroupSummary> getProjectGroups()
Method getProjectGroups.

Returns:
List

getProjects

public List<ProjectSummary> getProjects()
Method getProjects.

Returns:
List

removeProject

public void removeProject(ProjectSummary projectSummary)
Method removeProject.

Parameters:
projectSummary -

removeProjectGroup

public void removeProjectGroup(ProjectGroupSummary projectGroupSummary)
Method removeProjectGroup.

Parameters:
projectGroupSummary -

setProjectGroups

public void setProjectGroups(List<ProjectGroupSummary> projectGroups)
Set the projectGroups field.

Parameters:
projectGroups -

setProjects

public void setProjects(List<ProjectSummary> projects)
Set the projects field.

Parameters:
projects -

addError

public void addError(String errorKey)
Add an error that happened during adding the project to Continuum.

Parameters:
errorKey - error id (so it can be internationalized later)

getErrors

public List getErrors()
Get the errors that happened during adding the project to Continuum. There is an entry with the error key (so it can be internationalized later) for each error.

Returns:
List < String >

hasErrors

public boolean hasErrors()
Quick check to see if there are any errors.

Returns:
boolean indicating if there are any errors.

getErrorsAsString

public String getErrorsAsString()
Returns a string representation of the errors.

Returns:
a string representation of the errors.


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.