|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectorg.apache.commons.validator.ValidatorAction
動的にインスタンス化され、実行される妥当性チェック処理の情報を保持します。
このクラスはXMLファイルに定義される入れ替え可能な妥当性チェックを表現します。
注: 妥当性チェックメソッドはスレッドセーフとみなされます。
| フィールドの概要 | |
private String |
classname
The full class name of the class containing the validation method associated with this action. |
private String |
depends
The other ValidatorActions that this
one depends on. |
private org.apache.commons.collections.FastHashMap |
hDependencies
A FastHashMap of the other
ValiadtorActions this one depends
on (if any). |
private Object |
instance
If the java method matching the correct signature isn't static, the instance is stored in the action. |
private String |
javascript
An optional field to containing a JavaScript representation of the java method assocated with this action. |
private String |
jsFunctionName
An optional field to contain the name to be used if JavaScript is generated. |
private List |
lMethodParams
A list of all the validation method's parameters. |
private String |
method
The full method name of the validation to be performed. |
private String |
methodParams
The method signature of the validation method. |
private String |
msg
The default error message associated with this action. |
private String |
name
The name of the validation. |
| コンストラクタの概要 | |
ValidatorAction()
|
|
| メソッドの概要 | |
String |
getClassname()
Gets the class of the validator action. |
Object |
getClassnameInstance()
Gets an instance based on the validator action's classname. |
Collection |
getDependencies()
Gets the dependencies as a Collection. |
String |
getDepends()
Gets the dependencies of the validator action. |
String |
getJavascript()
Gets the Javascript equivalent of the java class and method associated with this action. |
String |
getJsFunctionName()
Gets the Javascript function name. |
String |
getMethod()
Gets the name of method being called for the validator action. |
String |
getMethodParams()
Gets the method parameters for the method. |
List |
getMethodParamsList()
Gets the method parameters for the method. |
String |
getMsg()
Gets the message associated with the validator action. |
String |
getName()
Gets the name of the validator action. |
boolean |
isDependency(String key)
Checks whether or not the value passed in is in the depends field. |
void |
process(Map globalConstants)
Creates a FastHashMap for the isDependency method
based on depends. |
void |
setClassname(String classname)
Sets the class of the validator action. |
void |
setClassnameInstance(Object instance)
Sets an instance based on the validator action's classname. |
void |
setDepends(String depends)
Sets the dependencies of the validator action. |
void |
setJavascript(String javascript)
Sets the Javascript equivalent of the java class and method associated with this action. |
void |
setJsFunctionName(String jsFunctionName)
Sets the Javascript function name. |
void |
setMethod(String method)
Sets the name of method being called for the validator action. |
void |
setMethodParams(String methodParams)
Sets the method parameters for the method. |
void |
setMsg(String msg)
Sets the message associated with the validator action. |
void |
setName(String name)
Sets the name of the validator action. |
String |
toString()
Returns a string representation of the object. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
private String name
private String classname
private String method
private String methodParams
The method signature of the validation method. This should be a comma delimited list of the full class names of each parameter in the correct order that the method takes.
Note: java.lang.Object is reserved for the
JavaBean that is being validated. The ValidatorAction
and Field that are associated with a fields
validation will automatically be populated if they are
specified in the method signature.
private String depends
ValidatorActions that this
one depends on. If any errors occur in an action
that this one depends on, this action will not
be processsed.
private String msg
private String jsFunctionName
private String javascript
private Object instance
private org.apache.commons.collections.FastHashMap hDependencies
FastHashMap of the other
ValiadtorActions this one depends
on (if any).
private List lMethodParams
| コンストラクタの詳細 |
public ValidatorAction()
| メソッドの詳細 |
public String getName()
public void setName(String name)
public String getClassname()
public void setClassname(String classname)
public String getMethod()
public void setMethod(String method)
public String getMethodParams()
public void setMethodParams(String methodParams)
public List getMethodParamsList()
public String getDepends()
public void setDepends(String depends)
public String getMsg()
public void setMsg(String msg)
public String getJsFunctionName()
public void setJsFunctionName(String jsFunctionName)
public String getJavascript()
public void setJavascript(String javascript)
public Object getClassnameInstance()
public void setClassnameInstance(Object instance)
public void process(Map globalConstants)
FastHashMap for the isDependency method
based on depends.
public boolean isDependency(String key)
public Collection getDependencies()
Collection.
public String toString()
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||