org.apache.commons.validator
クラス Constant

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

public class Constant
extends Object
implements Serializable

constant(このクラス) はグローバルまたはロケール毎に不変なフィールドを定義する際の置き換えに使用することができます。 Field のプロパティフィールド、Var の値のフィールド、Msg のキーのフィールド、Arg のキーのフィールドを入れ替えることが可能です。
   例: <constant name="zip" value="^\d{5}$" />
         mask="${zip}"

バージョン:
$Revision: 1.1.1.1 $ $Date: 2004/02/13 10:02:01 $
作成者:
David Winterfeldt
関連項目:
直列化された形式
翻訳者:
日置 聡

フィールドの概要
private  String name
          The name of the constant.
private  String value
          The name of the constant.
 
コンストラクタの概要
Constant()
           
 
メソッドの概要
 String getName()
          Gets the name of the constant.
 String getValue()
          Gets the value of the constant.
 void setName(String name)
          Sets the name of the constant.
 void setValue(String value)
          Sets the value of the constant.
 String toString()
          Returns a string representation of the object.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

name

private String name
The name of the constant.


value

private String value
The name of the constant.

コンストラクタの詳細

Constant

public Constant()
メソッドの詳細

getName

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


setName

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


getValue

public String getValue()
Gets the value of the constant.


setValue

public void setValue(String value)
Sets the value of the constant.


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