SigPath

org.sigpath.form
Class SpecifyExternalReference

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.sigpath.form.SpecifySigPathEntity
          extended by org.sigpath.form.SpecifyExternalReference
All Implemented Interfaces:
Serializable

public class SpecifyExternalReference
extends SpecifySigPathEntity

Form Bean for Specifying an External Reference. In addition to the SPID, this form has two additional fields:

Author:
Ethan Cerami
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SpecifyExternalReference()
           
 
Method Summary
 String getAc()
          Gets the Accession Code.
 String getDatabase()
          Gets the Database Value.
 String getOldAc()
          Gets the Old Accession Code.
 String getOldDatabase()
          Gets the Old Database.
 void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
          Reset all properties to their default values.
 void setAc(String ac)
          Sets the Accession Code.
 void setDatabase(String database)
          Sets the Database Parameter.
 void setOldAc(String oldAC)
          Sets the old Accession Code.
 void setOldDatabase(String oldDatabase)
          Sets the Old Database.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
          Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
Methods inherited from class org.sigpath.form.SpecifySigPathEntity
getSpid, setSpid
 
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

SpecifyExternalReference

public SpecifyExternalReference()
Method Detail

setDatabase

public void setDatabase(String database)
Sets the Database Parameter.

Parameters:
database - Database value

getDatabase

public String getDatabase()
Gets the Database Value.

Returns:
Database name String

setAc

public void setAc(String ac)
Sets the Accession Code.

Parameters:
ac - Accession Code

getAc

public String getAc()
Gets the Accession Code.

Returns:
Accession Code String

setOldAc

public void setOldAc(String oldAC)
Sets the old Accession Code. Used for editing ERs only.

Parameters:
oldAC - Accession Code String

getOldAc

public String getOldAc()
Gets the Old Accession Code. Used for editing ERs only.

Returns:
Accession Code String

setOldDatabase

public void setOldDatabase(String oldDatabase)
Sets the Old Database. Used for editing ERs only.

Parameters:
oldDatabase - Database Database String

getOldDatabase

public String getOldDatabase()
Gets the Old Database. Used for editing ERs only.

Returns:
Database String

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  HttpServletRequest request)
Reset all properties to their default values.

Overrides:
reset in class SpecifySigPathEntity
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      HttpServletRequest request)
Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.

Overrides:
validate in class SpecifySigPathEntity
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing
Returns:
ActionErrors object containing all validation errors

SigPath

Copyright © 2002-2005 Institute for Computational Biomedicine, All Rights Reserved.