org.ow2.jonas.webapp.jonasadmin.domain
Class DomainForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.ow2.jonas.webapp.jonasadmin.domain.DomainForm
All Implemented Interfaces:
Serializable

public class DomainForm
extends org.apache.struts.action.ActionForm

Form used for EditDomainAction. It is used for domain or cluster display

Author:
danesa
See Also:
Serialized Form

Field Summary
 String typeCluster
          Used to define type - cluster case.
 String typeDomain
          Used to define type - domain case.
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
DomainForm()
           
 
Method Summary
 String getClusterType()
           
 String getDescription()
           
 String getDomainName()
           
 String getMasterName()
           
 String getMasterON()
           
 String getName()
           
 String getType()
           
 boolean isCluster()
           
 boolean isMaster()
           
 void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
          Reset all properties to their default values.
 void setCluster(boolean isCluster)
           
 void setClusterType(String clusterType)
           
 void setDescription(String description)
           
 void setDomainName(String domainName)
           
 void setMaster(boolean isMaster)
           
 void setMasterName(String masterName)
           
 void setMasterON(String masterON)
           
 void setName(String name)
           
 void setType(String type)
           
 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.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
 

Field Detail

typeDomain

public final String typeDomain
Used to define type - domain case.

See Also:
Constant Field Values

typeCluster

public final String typeCluster
Used to define type - cluster case.

See Also:
Constant Field Values
Constructor Detail

DomainForm

public DomainForm()
Method Detail

reset

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

Overrides:
reset in class org.apache.struts.action.ActionForm
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 org.apache.struts.action.ActionForm
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getDomainName

public String getDomainName()
Returns:
Returns the domainName.

setDomainName

public void setDomainName(String domainName)
Parameters:
domainName - The domainName to set.

isCluster

public boolean isCluster()
Returns:
Returns the isCluster.

setCluster

public void setCluster(boolean isCluster)
Parameters:
isCluster - The isCluster to set.

getMasterName

public String getMasterName()
Returns:
Returns the masterName.

setMasterName

public void setMasterName(String masterName)
Parameters:
masterName - The masterName to set.

getMasterON

public String getMasterON()
Returns:
Returns the masterON.

setMasterON

public void setMasterON(String masterON)
Parameters:
masterON - The masterON to set.

getType

public String getType()
Returns:
Returns the type.

setType

public void setType(String type)
Parameters:
type - The type to set.

getDescription

public String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

isMaster

public boolean isMaster()
Returns:
Returns the isMaster.

setMaster

public void setMaster(boolean isMaster)
Parameters:
isMaster - The isMaster to set.

getClusterType

public String getClusterType()

setClusterType

public void setClusterType(String clusterType)


Copyright © 2010 OW2 Consortium. All Rights Reserved.