sal.util.property



class PropertyException: object.Exception;
プロパティエラー.

this(string msg, Throwable next = null);
指定されたメッセージ, 原因を持つ プロパティファイルエラーを構築します.

Params:
string msg メッセージ.
Throwable next 原因

this(string msg, string file, size_t line, Throwable next = null);
指定されたメッセージ, ファイル名, 行番号, 原因を持つ プロパティファイルエラーを構築します.

Params:
string msg メッセージ.
string file ファイル
size_t line 行番号
Throwable next 原因

class Property;
キーと値のペアを扱うプロパティクラス.

this();
空のプロパティを生成します.

this(Property prop);
指定されたプロパティの要素をもつプロパティを生成します.

Params:
Property prop プロパティ

T getValue(T)(string key, T def);
キーに対応する値を取得します. 対応する値がない場合, 変換に失敗した場合, def を返します.

Params:
key キー
def デフォルト値

Return:


void setValue(string key, string val);
キーに対応する値を設定します.

Params:
string key キー
string val

void addProperty(Property prop);
指定されたプロパティを追加します.

Params:
Property prop プロパティ

int opApply(int delegate(ref immutable(char)[] v) dg);
foreach 用. foreach(string value; properties)

int opApply(int delegate(ref immutable(char)[] k, ref immutable(char)[] v) dg);
foreach 用. foreach(string key, string value; properties)

string toString();
プロパティの文字列表現.

Return:
プロパティの文字列表現

class FilePropertyLoader;
ファイルよりプロパティを読み出すローダ.

this(Property prop);
指定されたプロパティに

void load(string file);
指定されたファイルよりプロパティをロードします.

Params:
string file 読み出すファイル


Page generated by Ddoc.