org.apache.commons.validator
クラス Arg

java.lang.Object
  拡張org.apache.commons.validator.Arg
すべての実装インタフェース:
Cloneable, Serializable

public class Arg
extends Object
implements Cloneable, Serializable

デフォルトのアーギュメントまたは妥当性チェック定義で指定されたアーギュメント (例: required) はメッセージのパラメータに使用することができます。 このクラスは入れ替え可能な妥当性チェックでロケール毎のメッセージを java.text.MessageFormat またはそれと同等なクラスを使用して生成する際に用いられます。 resource フィールドは保持している値に対して java.util.PropertyResourceBundle のようなロケール毎のメッセージ取得機能を使用するかどうかを判断する際に使用されます。 resource フィールドのデフォルトは 'true' です。

A default argument or an argument for a specific validator definition (ex: required) can be stored to pass into a message as parameters. This can be used in a pluggable validator for constructing locale sensitive messages by using java.text.MessageFormat or an equivalent class. The resource field can be used to determine if the value stored in the argument is a value to be retrieved from a locale sensitive message retrieval system like java.util.PropertyResourceBundle. The resource field defaults to 'true'.

バージョン:
$Revision: 1.1.1.1 $ $Date: 2004/02/13 10:02:01 $
作成者:
David Winterfeldt
関連項目:
直列化された形式
翻訳者:
日置 聡
翻訳状況:
中断(訳者募集中)
翻訳更新日:
2003/07/28

フィールドの概要
protected  String key
          The key or value of the argument.
protected  String name
          The name dependency that this argument goes with (optional).
protected  boolean resource
          Whether or not the key is a message resource (optional).
 
コンストラクタの概要
Arg()
           
 
メソッドの概要
 Object clone()
          Creates and returns a copy of this object.
 String getKey()
          Gets the key/value.
 String getName()
          Gets the name of the dependency.
 boolean getResource()
          Gets whether or not the key is a resource.
 void setKey(String key)
          Sets the key/value.
 void setName(String name)
          Sets the name of the dependency.
 void setResource(boolean resource)
          Sets whether or not the key is a resource.
 String toString()
          Returns a string representation of the object.
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

name

protected String name
The name dependency that this argument goes with (optional).


key

protected String key
The key or value of the argument.


resource

protected boolean resource
Whether or not the key is a message resource (optional). Defaults to true. If it is 'true', the value will try to be resolved as a message resource.

コンストラクタの詳細

Arg

public Arg()
メソッドの詳細

getName

public String getName()
Gets the name of the dependency.


setName

public void setName(String name)
Sets the name of the dependency.


getKey

public String getKey()
Gets the key/value.


setKey

public void setKey(String key)
Sets the key/value.


getResource

public boolean getResource()
Gets whether or not the key is a resource.


setResource

public void setResource(boolean resource)
Sets whether or not the key is a resource.


clone

public Object clone()
Creates and returns a copy of this object.


toString

public String toString()
Returns a string representation of the object.



このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation