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

Package class diagram package AddingResult
java.lang.Object
  extended by org.apache.maven.continuum.xmlrpc.project.AddingResult
All Implemented Interfaces:
java.io.Serializable

public class AddingResult
extends java.lang.Object
implements java.io.Serializable

This class is the result of add maven project action.

See Also:
Serialized Form

Constructor Summary
AddingResult()
           
 
Method Summary
 void addError(java.lang.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.
 java.util.List getErrors()
          Get the errors that happened during adding the project to Continuum.
 java.lang.String getErrorsAsString()
          Returns a string representation of the errors.
 java.lang.String getModelEncoding()
           
 java.util.List getProjectGroups()
          Method getProjectGroups.
 java.util.List 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 setModelEncoding(java.lang.String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setProjectGroups(java.util.List projectGroups)
          Set the projectGroups field.
 void setProjects(java.util.List 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 java.util.List getProjectGroups()
Method getProjectGroups.

Returns:
java.util.List

getProjects

public java.util.List getProjects()
Method getProjects.

Returns:
java.util.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(java.util.List projectGroups)
Set the projectGroups field.

Parameters:
projectGroups -

setProjects

public void setProjects(java.util.List projects)
Set the projects field.

Parameters:
projects -

addError

public void addError(java.lang.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 java.util.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 java.lang.String getErrorsAsString()
Returns a string representation of the errors.

Returns:
a string representation of the errors.

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Set an encoding used for reading/writing the model.

Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public java.lang.String getModelEncoding()
Returns:
the current encoding used when reading/writing this model.