org.apache.commons.validator
クラス FormSet

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

public class FormSet
extends Object
implements Serializable

Locale をベースにした国、言語等ごとに保持された Form のセットを保持します。

Holds a set of Forms stored associated with a Locale based on the country, language, and variant specified.

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

フィールドの概要
private  boolean bProcessed
          Whether or not the this FormSet was processed for replacing variables in strings with their values.
private  String country
          Country component of Locale (optional).
private  org.apache.commons.collections.FastHashMap hConstants
          A FastHashMap of Constants using the name field of the Constant as the key.
private  org.apache.commons.collections.FastHashMap hForms
          A FastHashMap of Forms using the name field of the Form as the key.
private  String language
          Language component of Locale (required).
private  String variant
          Variant component of Locale (optional).
 
コンストラクタの概要
FormSet()
           
 
メソッドの概要
 void addConstant(Constant c)
          Add a Constant (locale level).
 void addConstantParam(String name, String value)
          Add a Constant to the locale level.
 void addForm(Form f)
          Add a Form to the FormSet.
 String getCountry()
          Gets the equivalent of the country component of Locale.
 Form getForm(Object key)
          Retrieve a Form based on the form name.
 Map getForms()
          A Map of Forms is returned as an unmodifiable Map with the key based on the form name.
 String getLanguage()
          Gets the equivalent of the language component of Locale.
 String getVariant()
          Gets the equivalent of the variant component of Locale.
 boolean isProcessed()
          Whether or not the this FormSet was processed for replacing variables in strings with their values.
 void process(Map globalConstants)
          Processes all of the Forms, set FastHashMaps to 'fast' mode.
 void setCountry(String country)
          Sets the equivalent of the country component of Locale.
 void setLanguage(String language)
          Sets the equivalent of the language component of Locale.
 void setVariant(String variant)
          Sets the equivalent of the variant component of Locale.
 String toString()
          Returns a string representation of the object.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

bProcessed

private boolean bProcessed
Whether or not the this FormSet was processed for replacing variables in strings with their values.


language

private String language
Language component of Locale (required).


country

private String country
Country component of Locale (optional).


variant

private String variant
Variant component of Locale (optional).


hForms

private org.apache.commons.collections.FastHashMap hForms
A FastHashMap of Forms using the name field of the Form as the key.


hConstants

private org.apache.commons.collections.FastHashMap hConstants
A FastHashMap of Constants using the name field of the Constant as the key.

コンストラクタの詳細

FormSet

public FormSet()
メソッドの詳細

isProcessed

public boolean isProcessed()
Whether or not the this FormSet was processed for replacing variables in strings with their values.


getLanguage

public String getLanguage()
Gets the equivalent of the language component of Locale.


setLanguage

public void setLanguage(String language)
Sets the equivalent of the language component of Locale.


getCountry

public String getCountry()
Gets the equivalent of the country component of Locale.


setCountry

public void setCountry(String country)
Sets the equivalent of the country component of Locale.


getVariant

public String getVariant()
Gets the equivalent of the variant component of Locale.


setVariant

public void setVariant(String variant)
Sets the equivalent of the variant component of Locale.


addConstant

public void addConstant(Constant c)
Add a Constant (locale level).


addConstantParam

public void addConstantParam(String name,
                             String value)
Add a Constant to the locale level.


addForm

public void addForm(Form f)
Add a Form to the FormSet.


getForm

public Form getForm(Object key)
Retrieve a Form based on the form name.


getForms

public Map getForms()
A Map of Forms is returned as an unmodifiable Map with the key based on the form name.


process

public void process(Map globalConstants)
Processes all of the Forms, set FastHashMaps to 'fast' mode.


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