|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.util.Dictionary java.util.Hashtable java.util.Properties jp.co.intra_mart.common.aid.jdk.java.util.ExtendedProperties jp.co.intra_mart.common.aid.jdk.org.w3c.dom.ElementProperties jp.co.intra_mart.common.aid.jdk.javax.xml.XMLProperties
XML をベースとした不変のプロパティセットを表します。
このクラスは、XML を元データとして、Properties
として
利用できるインタフェースを提供します。
読み込んだ XML ソースは、DocumentBuilderFactory
が
返すパーサを利用して解析します。
XML で記述された各情報に対しては、XPath 形式の文字列をプロパティ名として
Properties.getProperty(java.lang.String)
により
アクセスできます。
プロパティ名の例
/root/elm1
・・・タグに挟まれた文字列情報
/root/elm1/@attr
・・・タグの属性
/root/elm1/text()
・・・タグに挟まれた文字列情報を連結したもの
/root/elm1/comment()
・・・コメントを連結したもの
..
や //
等を用いた相対指定もできません。
取得できる値は、テキストノードおよび属性(attribute)ノードの値のみです。 コメントノード等の値は取得できません。
フィールドの概要 |
クラス java.util.Properties から継承したフィールド |
defaults |
コンストラクタの概要 | |
XMLProperties(File f)
指定データを持つ新しいプロパティセットを作成します。 |
|
XMLProperties(InputSource in)
指定データを持つ新しいプロパティセットを作成します。 |
|
XMLProperties(InputSource in,
Properties parent)
指定データを持つ新しいプロパティセットを作成します。 |
|
XMLProperties(InputStream in)
指定データを持つ新しいプロパティセットを作成します。 |
|
XMLProperties(InputStream in,
Properties parent)
指定データを持つ新しいプロパティセットを作成します。 |
メソッドの概要 | |
Document |
getDocument()
設定ファイルのドキュメントノードを返します。 |
クラス jp.co.intra_mart.common.aid.jdk.org.w3c.dom.ElementProperties から継承したメソッド |
getElement, getProperties |
クラス jp.co.intra_mart.common.aid.jdk.java.util.ExtendedProperties から継承したメソッド |
doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, isFalse, isTrue, longValue, longValue, parseInt, parseLong |
クラス java.util.Properties から継承したメソッド |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
クラス java.util.Hashtable から継承したメソッド |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
クラス java.lang.Object から継承したメソッド |
finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public XMLProperties(File f) throws FileNotFoundException, ParserConfigurationException, SAXException, IOException
f
- 設定ファイル(xml)のパス
FileNotFoundException
- ファイルがな場合。またはファイルにアクセスできない場合。
IOException
- 入出力エラー
SAXException
- XML の解析エラー
ParserConfigurationException
- XML の解析エラーpublic XMLProperties(InputStream in) throws ParserConfigurationException, SAXException, IOException
in
- XML ソースを入力するストリーム
IOException
- 入出力エラー
SAXException
- XML の解析エラー
ParserConfigurationException
- XML の解析エラーpublic XMLProperties(InputSource in) throws ParserConfigurationException, SAXException, IOException
in
- XML ソースを入力するストリーム
IOException
- 入出力エラー
SAXException
- XML の解析エラー
ParserConfigurationException
- XML の解析エラーpublic XMLProperties(InputStream in, Properties parent) throws ParserConfigurationException, SAXException, IOException
in
- XML ソースを入力するストリームparent
- 基礎データ
IOException
- 入出力エラー
SAXException
- XML の解析エラー
ParserConfigurationException
- XML の解析エラーpublic XMLProperties(InputSource in, Properties parent) throws ParserConfigurationException, SAXException, IOException
in
- XML ソースを入力するストリームparent
- 基礎データ
IOException
- 入出力エラー
SAXException
- XML の解析エラー
ParserConfigurationException
- XML の解析エラーメソッドの詳細 |
public Document getDocument()
|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |