org.figure8.join.control.form
Class MachineForm
java.lang.Object
org.apache.struts.action.ActionForm
org.figure8.join.control.JoinForm
org.figure8.join.control.form.MachineForm
- All Implemented Interfaces:
- java.io.Serializable
public class MachineForm
- extends JoinForm
Form object used for manipulating physical Machines into Join application.
- Version:
- $Revision: 1.1 $
- Author:
- Laurent Broudoux
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary |
MachineForm()
Creates a new instance of MachineForm. |
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 |
MachineForm
public MachineForm()
- Creates a new instance of MachineForm.
getName
public java.lang.String getName()
- Returns:
- The machine full network name
setName
public void setName(java.lang.String name)
- Parameters:
name
- This machine full network name
getIpAddress
public java.lang.String getIpAddress()
- Returns:
- The current machine IP address
setIpAddress
public void setIpAddress(java.lang.String ipAddress)
- Parameters:
ipAddress
- The machine IP address
getOsInfo
public java.lang.String getOsInfo()
- Returns:
- The current machine operating system infos
setOsInfo
public void setOsInfo(java.lang.String osInfo)
- Parameters:
osInfo
- The machine operation system infos
getCpuInfo
public java.lang.String getCpuInfo()
- Returns:
- The current machine CPU infos
setCpuInfo
public void setCpuInfo(java.lang.String cpuInfo)
- Parameters:
cpuInfo
- The machine CPU infos
getRamAmount
public int getRamAmount()
- Returns:
- The amount of RAM on current machine
setRamAmount
public void setRamAmount(int ramAmount)
- Parameters:
ramAmount
- The amount of RAM on machine
getRomAmount
public int getRomAmount()
- Returns:
- The amount of ROM on current machine
setRomAmount
public void setRomAmount(int romAmount)
- Parameters:
romAmount
- The amount of ROM on machine
getRamAmountStr
public java.lang.String getRamAmountStr()
- Returns:
- The amount of RAM on current machine (should be an integer)
setRamAmountStr
public void setRamAmountStr(java.lang.String ramAmountStr)
- Parameters:
ramAmountStr
- The amount of RAM on machine (should be an integer)
getRomAmountStr
public java.lang.String getRomAmountStr()
- Returns:
- The amount of ROM on current machine (should be an integer)
setRomAmountStr
public void setRomAmountStr(java.lang.String romAmountStr)
- Parameters:
romAmountStr
- The amount of ROM on machine (should be an integer)
doValidate
public void doValidate(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Validation of the form attributes.
- Specified by:
doValidate
in class JoinForm
- Parameters:
operation
- String representing the operation to invoke on Actionmapping
- Mapping between forwards name and path for this actionrequest
- 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 actionrequest
- The servlet container request wrapper
Copyright © 2005-2008 Join. All Rights Reserved.