|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.xml.sax.helpers.DefaultHandler jp.co.intra_mart.foundation.im_curl.CurlXMLParser
CurlXMLパーサクラス
機能は以下の通り
フィールドの概要 | |
protected Object |
field
|
protected ArrayList |
fieldsList
|
protected Object |
instance
|
protected ArrayList |
recordList
|
コンストラクタの概要 | |
CurlXMLParser(InputStream stream,
String beanClassName)
このクラス自身をハンドラとしたSAXパーサを作成し、指定されたInputStreamから取得したXMLを パースします。 |
|
CurlXMLParser(String path,
String beanClassName)
このクラス自身をハンドラとしたSAXパーサを作成し、指定されたpathのXMLを パースします。 |
メソッドの概要 | |
protected void |
createField(Attributes atts)
qNameがFieldの場合のパーサの動作を定義します。 |
protected void |
createRecord(Attributes atts)
qNameがRecordの場合のパーサの動作を定義します。 |
void |
endElement(String uri,
String localName,
String qName)
DefaultHandlerのabstractメソッドをオーバーライドします。 |
ArrayList |
getFieldsList()
パースした結果のフィールド一覧リストを返します。 |
ArrayList |
getRecordList()
パースした結果のレコード一覧リストを返します。 |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
DefaultHandlerのabstractメソッドをオーバーライドします。 |
クラス org.xml.sax.helpers.DefaultHandler から継承したメソッド |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected ArrayList fieldsList
protected ArrayList recordList
protected Object field
protected Object instance
コンストラクタの詳細 |
public CurlXMLParser(String path, String beanClassName) throws SAXException
path
- パース対象のXMLファイルのパスbeanClassName
- パース対象のXMLのRecordタグに対応するJavaBeansクラス名
SAXException
public CurlXMLParser(InputStream stream, String beanClassName) throws SAXException
stream
- パース対象のXMLを読み込むストリームbeanClassName
- パース対象のXMLのRecordタグに対応するJavaBeansクラス名
SAXException
メソッドの詳細 |
public ArrayList getRecordList()
public ArrayList getFieldsList()
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
SAXException
protected void createField(Attributes atts)
atts
- protected void createRecord(Attributes atts) throws SAXException
atts
-
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
SAXException
|
intra-mart 6.1.14 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |