|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.apache.struts.validator.BeanValidatorForm
Struts validator ActionForm backed by either a DynaBean or POJO JavaBean.
Passing a POJO JavaBean to the constructor will automatically create an associated
WrapDynaBean. One use for this would be to migrate view
objects from an existing system which, for the usual reasons, can't be changed to extend
This form is based on the standard struts ValidatorForm for use with the
Validator framework and validates either using the name from the Struts
ActionMapping or the ActionMapping's path depending on
whether pathValidation is true or false.
| フィールドの概要 | |
protected org.apache.commons.beanutils.DynaBean |
dynaBean
The DynaBean that this ActionForm is backed by. |
protected static org.apache.commons.logging.Log |
logger
Commons Logging |
protected boolean |
pathValidation
Indicates whether the ActionMapping's path should be used for the validation key. |
| クラス org.apache.struts.validator.ValidatorForm から継承したフィールド |
page, validatorResults |
| クラス org.apache.struts.action.ActionForm から継承したフィールド |
multipartRequestHandler, servlet |
| コンストラクタの概要 | |
BeanValidatorForm(java.lang.Object bean)
Construct a new BeanValidatorForm with the specified bean. |
|
| メソッドの概要 | |
boolean |
contains(java.lang.String name,
java.lang.String key)
Does the specified mapped property contain a value for the specified key value? |
java.lang.Object |
get(java.lang.String name)
Return the value of a simple property with the specified name. |
java.lang.Object |
get(java.lang.String name,
int index)
Return the value of an indexed property with the specified name. |
java.lang.Object |
get(java.lang.String name,
java.lang.String key)
Return the value of a mapped property with the specified name, or null if there is no value for the specified key. |
org.apache.commons.beanutils.DynaBean |
getDynaBean()
Return the DynaBean that this ActionForm is backed by. |
org.apache.commons.beanutils.DynaClass |
getDynaClass()
Return the DynaClass instance that describes the set of
properties available for this DynaBean. |
java.lang.Object |
getInstance()
Return the Bean that this ActionForm is backed by. |
java.lang.String |
getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Returns the Validation key |
protected boolean |
isPathValidation()
Indicates whether this form should validate based on the ActionMapping's path. |
void |
remove(java.lang.String name,
java.lang.String key)
Remove any existing value for the specified key on the specified mapped property. |
void |
set(java.lang.String name,
int index,
java.lang.Object value)
Set the value of an indexed property with the specified name. |
void |
set(java.lang.String name,
java.lang.Object value)
Set the value of a simple property with the specified name. |
void |
set(java.lang.String name,
java.lang.String key,
java.lang.Object value)
Set the value of a mapped property with the specified name. |
protected void |
setPathValidation(boolean pathValidation)
Set whether this form should validate based on the ActionMapping's path. |
int |
size(java.lang.String name)
Return the size of an indexed or mapped property. |
| クラス org.apache.struts.validator.ValidatorForm から継承したメソッド |
getPage, getResultValueMap, getValidatorResults, reset, setPage, setValidatorResults, validate |
| クラス org.apache.struts.action.ActionForm から継承したメソッド |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected static org.apache.commons.logging.Log logger
protected org.apache.commons.beanutils.DynaBean dynaBean
DynaBean that this ActionForm is backed by.
protected boolean pathValidation
| コンストラクタの詳細 |
public BeanValidatorForm(java.lang.Object bean)
BeanValidatorForm with the specified bean.
| メソッドの詳細 |
protected void setPathValidation(boolean pathValidation)
Set whether this form should validate based on the ActionMapping's path.
protected boolean isPathValidation()
Indicates whether this form should validate based on the ActionMapping's path.
public org.apache.commons.beanutils.DynaBean getDynaBean()
Return the DynaBean that this ActionForm is backed by.
public java.lang.Object getInstance()
Return the Bean that this ActionForm is backed by.
If the DynaBean is a WrapDynaBean type then this method
returns the 'Wrapped' POJO bean associated with it. If you require the actual WrapDynaBean
then use the getDynaBean() method.
public int size(java.lang.String name)
Return the size of an indexed or mapped property.
public java.lang.String getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
ValidatorForm 内の getValidationKeymapping - The mapping used to select this instancerequest - The servlet request we are processing
public org.apache.commons.beanutils.DynaClass getDynaClass()
DynaClass instance that describes the set of
properties available for this DynaBean.
org.apache.commons.beanutils.DynaBean 内の getDynaClasspublic java.lang.Object get(java.lang.String name)
org.apache.commons.beanutils.DynaBean 内の getname - Name of the property whose value is to be retrieved
public java.lang.Object get(java.lang.String name,
int index)
org.apache.commons.beanutils.DynaBean 内の getname - Name of the property whose value is to be retrievedindex - Index of the value to be retrieved
public java.lang.Object get(java.lang.String name,
java.lang.String key)
null if there is no value for the specified key.
org.apache.commons.beanutils.DynaBean 内の getname - Name of the property whose value is to be retrievedkey - Key of the value to be retrieved
public void set(java.lang.String name,
java.lang.Object value)
org.apache.commons.beanutils.DynaBean 内の setname - Name of the property whose value is to be setvalue - Value to which this property is to be set
public void set(java.lang.String name,
int index,
java.lang.Object value)
org.apache.commons.beanutils.DynaBean 内の setname - Name of the property whose value is to be setindex - Index of the property to be setvalue - Value to which this property is to be set
public void set(java.lang.String name,
java.lang.String key,
java.lang.Object value)
org.apache.commons.beanutils.DynaBean 内の setname - Name of the property whose value is to be setkey - Key of the property to be setvalue - Value to which this property is to be set
public boolean contains(java.lang.String name,
java.lang.String key)
org.apache.commons.beanutils.DynaBean 内の containsname - Name of the property to checkkey - Name of the key to check
public void remove(java.lang.String name,
java.lang.String key)
org.apache.commons.beanutils.DynaBean 内の removename - Name of the property for which a value is to
be removedkey - Key of the value to be removed
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||