表7-2にFactory
インタフェースで使用できるメソッドの概要を示します。
表7-2 Factoryメソッドの概要: ツール・パッケージ
関数 | 概要 |
---|---|
|
コンストラクタです。 |
|
DOMパーサーを作成します。 |
|
SAXパーサーを作成します。 |
|
スキーマ・バリデータを作成します。 |
|
拡張XPathプロセッサを作成します。 |
|
XPathコンパイラを作成します。 |
|
XPathプロセッサを作成します。 |
|
XPointerプロセッサを作成します。 |
|
Xslコンパイラを作成します。 |
createXslExtendedTransformer() |
XSL拡張トランスフォーマを作成します。 |
|
XSLトランスフォーマを作成します。 |
|
ファクトリのコンテキストを取得します。 |
|
デフォルトのデストラクタです。 |
クラス・コンストラクタです。
構文 | 説明 |
---|---|
Factory() throw (FactoryException); |
デフォルトのコンストラクタ。 |
Factory( Context* ctx_ptr) throw (FactoryException); |
コンテキスト・オブジェクトを指定してファクトリ・オブジェクトを作成します。 |
パラメータ | 説明 |
---|---|
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(Factory)
オブジェクト。
DOMパーサーを作成します。
構文
DOMParser< Context, Node>* createDOMParser ( DOMParserIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
パーサーIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(DOMParser*)
パーサー・オブジェクトへのポインタ。
SAXパーサーを作成します。
構文
SAXParser< Context>* createSAXParser ( SAXParserIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
パーサーIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(SAXParser*)
パーサー・オブジェクトへのポインタ。
スキーマ・バリデータを作成します。
構文
SchemaValidator< Node>* createSchemaValidator ( SchValidatorIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
バリデータIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(SchemaValidator*)
バリデータ・オブジェクトへのポインタ。
拡張XPathプロセッサを作成します。値XvmPrCXml
のみをとります。
構文
CompProcessor< Context, Node>* createXPathCompProcessor ( XPathPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
プロセッサIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(CompProcessor*)
プロセッサ・オブジェクトへのポインタ。
XPathコンパイラを作成します。
構文
XPath::Compiler< Context, Node>* createXPathCompiler ( XPathCompIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
コンパイラIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(XpathCompiler*)
コンパイラ・オブジェクトへのポインタ。
XPathプロセッサを作成します。
構文
XPath::Processor< Context, Node>* createXPathProcessor ( XPathPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
プロセッサIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(Processor*)
プロセッサ・オブジェクトへのポインタ。
XPointerプロセッサを作成します。
構文
XPointer::Processor< Context, Node>* createXPointerProcessor ( XppPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
プロセッサIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(Processor*)
プロセッサ・オブジェクトへのポインタ。
Xslコンパイラを作成します。
構文
Xsl::Compiler< Context, Node>* createXslCompiler ( XslCompIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
コンパイラIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(Compiler*)
コンパイラ・オブジェクトへのポインタ。
XSL拡張transformer
を作成します。値XvmTrCXml
のみをとります。
構文
CompTransformer< Context, Node>* createXslExtendedTransformer ( XslTrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
トランスフォーマIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(CompTrasformer*)
トランスフォーマ・オブジェクトへのポインタ。
XSLトランスフォーマを作成します。
構文
Transformer< Context, Node>* createXslTransformer ( XslTrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
パラメータ | 説明 |
---|---|
id_type |
トランスフォーマIDの型 |
ctx_ptr |
コンテキスト・オブジェクトへのポインタ |
戻り値
(Trasformer*)
トランスフォーマ・オブジェクトへのポインタ。
ファクトリのコンテキストを戻します。
構文
Context* getContext() const;
戻り値
(Context*)
コンテキスト・オブジェクトへのポインタ。
デフォルトのデストラクタです。
構文
~Factory();