org.figure8.join.control.form
Class BuildForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.figure8.join.control.JoinForm
          extended by org.figure8.join.control.form.BuildForm
All Implemented Interfaces:
java.io.Serializable

public class BuildForm
extends JoinForm

Form object used for manipulating Builds into Join application.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.figure8.join.control.JoinForm
errors
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
BuildForm()
          Creates a new instance of BuildForm
 
Method Summary
 void addComponent(Component component)
           
 void doValidate(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate form attributes.
 java.lang.String getComments()
           
 java.util.Map getComponents()
           
 java.lang.String getComposerId()
           
 java.util.Date getCreationDate()
           
 java.lang.String getCreationDateStr()
           
 java.lang.Object getExtractedComponent(java.lang.String key)
           
 java.util.Map getExtractedComponents()
           
 java.lang.String getKey()
           
 java.lang.Object getMappedComponent(java.lang.String key)
           
 java.lang.String getReleaseName()
           
 java.lang.String getVersionInfo()
           
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset form attributes.
 void setComments(java.lang.String comments)
           
 void setComposerId(java.lang.String composerId)
           
 void setCreationDateStr(java.lang.String creationDateStr)
           
 void setExtractedComponent(java.lang.String key, java.lang.Object value)
           
 void setKey(java.lang.String key)
           
 void setMappedComponent(java.lang.String key, java.lang.Object value)
           
 void setPublicationDate(java.util.Date creationDate)
           
 void setReleaseName(java.lang.String releaseName)
           
 void setVersionInfo(java.lang.String versionInfo)
           
 
Methods inherited from class org.figure8.join.control.JoinForm
addActionError, addActionError, addActionError, getGuiMessageResources, getId, getIdStr, getMessageResources, setId, setIdStr, validate, validateEntityObjectId
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildForm

public BuildForm()
Creates a new instance of BuildForm

Method Detail

getKey

public java.lang.String getKey()
Returns:
This build unique key

setKey

public void setKey(java.lang.String key)
Parameters:
key - This build unique key

getComments

public java.lang.String getComments()
Returns:
The comments on build creation

setComments

public void setComments(java.lang.String comments)
Parameters:
comments - The comments on build creation

getVersionInfo

public java.lang.String getVersionInfo()
Returns:
The information on this build version

setVersionInfo

public void setVersionInfo(java.lang.String versionInfo)
Parameters:
versionInfo - the information on this build version

getComposerId

public java.lang.String getComposerId()
Returns:
The identifier of user that has composed this build

setComposerId

public void setComposerId(java.lang.String composerId)
Parameters:
composerId - The identifier of user that has composed this build

getCreationDate

public java.util.Date getCreationDate()
Returns:
The creation date of this build

setPublicationDate

public void setPublicationDate(java.util.Date creationDate)
Parameters:
creationDate - The creation date of this build

getReleaseName

public java.lang.String getReleaseName()
Returns:
The name of the release this build is attached to

setReleaseName

public void setReleaseName(java.lang.String releaseName)
Parameters:
releaseName - The name of release this build is attached to

getCreationDateStr

public java.lang.String getCreationDateStr()
Returns:
Creation date for this build (should be a date)

setCreationDateStr

public void setCreationDateStr(java.lang.String creationDateStr)
Parameters:
creationDateStr - Creation date for this build (should be a date)

getComponents

public java.util.Map getComponents()
Returns:
Map of components composing build

getMappedComponent

public java.lang.Object getMappedComponent(java.lang.String key)
Parameters:
key - Key of component type to get component for
Returns:
The component in build corresponding to specified type

setMappedComponent

public void setMappedComponent(java.lang.String key,
                               java.lang.Object value)
Parameters:
key - Key of the type of component to add
value - The key of component to add to build composition

addComponent

public void addComponent(Component component)
Parameters:
component - Existing build component to add to mapped one

getExtractedComponents

public java.util.Map getExtractedComponents()
Returns:
Map of components composing build that shoule be extracted from assemblies

getExtractedComponent

public java.lang.Object getExtractedComponent(java.lang.String key)
Parameters:
key - Key of component type to get extraction assembly for
Returns:
The assembly from whom component of this type has to be extracted

setExtractedComponent

public void setExtractedComponent(java.lang.String key,
                                  java.lang.Object value)
Parameters:
key - Key of the type of component to extract
value - The key of assembly to extract component from

doValidate

public void doValidate(java.lang.String operation,
                       org.apache.struts.action.ActionMapping mapping,
                       javax.servlet.http.HttpServletRequest request)
Validate form attributes.

Specified by:
doValidate in class JoinForm
Parameters:
operation - String representing the operation to invoke on Action
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset form attributes.

Overrides:
reset in class JoinForm
Parameters:
mapping - Mapping between forwards name and path for this action
request - The servlet container request wrapper


Copyright © 2005-2008 Join. All Rights Reserved.