|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectshohaku.shoin.factory.AbstractResourceSetFactory
shohaku.shoin.factory.AbstractObjectResourceSetFactory
shohaku.shoin.factory.MapProperties
指定されたマップをプロパティセットとして生成するファクトリを提供します。
基となるオブジェクトはマップ型である必要があります。
例:
一般的なファイルの読み取りとコンポーネント取得の手順は以下の様に為ります。
MapProperties factory = new MapProperties();
HashMap map = new HashMap();
map.put("foo", new Integer(1234));
factory.setSources(new Object[] { map });
ResourceSet resources = factory.getResourceSet();
Integer foo = (Integer) resources.getObject("foo");
System.out.println("foo=" + foo);
>>foo=1234
| コンストラクタの概要 | |
MapProperties()
プロパティを初期値で初期化します。 |
|
| メソッドの概要 | |
java.lang.String |
getPrefix()
全てのリソースに対する接頭辞を返却します。 |
ResourceSet |
getResourceSet()
リソース集合を生成し返却します。 |
java.lang.String[] |
getSourcesPrefix()
リソース単位での接頭辞の配列を返却します。 |
void |
setPrefix(java.lang.String prefix)
全てのリソースに対する接頭辞を格納します。 |
void |
setSourcesPrefix(java.lang.String[] prefixs)
リソース単位での接頭辞の配列を格納します。 |
| クラス shohaku.shoin.factory.AbstractObjectResourceSetFactory から継承したメソッド |
getSources, setSources |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public MapProperties()
| メソッドの詳細 |
public ResourceSet getResourceSet()
throws ResourceSetCreationException
ResourceSetFactory の記述:
ResourceSetFactory 内の getResourceSetResourceSetCreationException - リソース集合の生成に失敗した場合public java.lang.String getPrefix()
ResourceKeyPrefixSupport の記述:
ResourceKeyPrefixSupport 内の getPrefixpublic void setPrefix(java.lang.String prefix)
ResourceKeyPrefixSupport の記述:
ResourceKeyPrefixSupport 内の setPrefixprefix - 全てのリソースに対する接頭辞public java.lang.String[] getSourcesPrefix()
ResourceKeyPrefixSupport の記述:
ResourceKeyPrefixSupport 内の getSourcesPrefixpublic void setSourcesPrefix(java.lang.String[] prefixs)
ResourceKeyPrefixSupport の記述:
ResourceKeyPrefixSupport 内の setSourcesPrefixprefixs - リソース単位での接頭辞の配列
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||