Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 7-2 summarizes the methods available through the Factory
interface.
Table 7-2 Summary of Factory Methods; Tools Package
Function | Summary |
---|---|
|
Constructor. |
|
Create DOM Parser. |
|
Create SAX Parser. |
|
Create schema validator. |
|
Create extended XPath processor. |
|
Create XPath compiler. |
|
Create XPath processor. |
|
Create XPointer processor. |
|
Create Xsl compiler. |
createXslExtendedTransformer() |
Create XSL extended transformer. |
|
Create XSL transformer. |
|
Get factory's context. |
|
Default destructor. |
Class constructor.
Syntax | Description |
---|---|
Factory() throw (FactoryException); |
Default constructor |
Factory( Context* ctx_ptr) throw (FactoryException); |
Creates factory object given a Context object. |
Parameter | Description |
---|---|
ctx_ptr |
pointer to a context object |
Returns
(Factory)
object
Creates DOM parser.
Syntax
DOMParser< Context, Node>* createDOMParser ( DOMParserIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
parser id type |
ctx_ptr |
pointer to a Context object |
Returns
(DOMParser*)
pointer to the parser object
Creates SAX parser.
Syntax
SAXParser< Context>* createSAXParser ( SAXParserIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
parser id type |
ctx_ptr |
pointer to a Context object |
Returns
(SAXParser*)
pointer to the parser object
Creates schema validator.
Syntax
SchemaValidator< Node>* createSchemaValidator ( SchValidatorIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
validator id type |
ctx_ptr |
pointer to a Context object |
Returns
(SchemaValidator*)
pointer to the validator object
Creates extended XPath processor; takes XvmPrCXml
value only.
Syntax
CompProcessor< Context, Node>* createXPathCompProcessor ( XPathPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
processor id type |
ctx_ptr |
pointer to a Context object |
Returns
(CompProcessor*)
pointer to the processor object
Creates XPath compiler.
Syntax
XPath::Compiler< Context, Node>* createXPathCompiler ( XPathCompIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
compiler id type |
ctx_ptr |
pointer to a Context object |
Returns
(XPathCompiler*)
pointer to the compiler object
Creates XPath processor.
Syntax
XPath::Processor< Context, Node>* createXPathProcessor ( XPathPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
processor id type |
ctx_ptr |
pointer to a Context object |
Returns
(Processor*)
pointer to the processor object
Creates XPointer processor.
Syntax
XPointer::Processor< Context, Node>* createXPointerProcessor ( XppPrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
processor id type |
ctx_ptr |
pointer to a Context object |
Returns
(Processor*)
pointer to the processor object
Creates Xsl compiler.
Syntax
Xsl::Compiler< Context, Node>* createXslCompiler ( XslCompIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
compiler id type |
ctx_ptr |
pointer to a Context object |
Returns
(Compiler*)
pointer to the compiler object
Creates XSL extended trnasformer
; takes XvmTrCXml
value only.
Syntax
CompTransformer< Context, Node>* createXslExtendedTransformer ( XslTrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
transformer id type |
ctx_ptr |
pointer to a Context object |
Returns
(CompTrasformer*)
pointer to the transformer object
Creates XSL trnasformer.
Syntax
Transformer< Context, Node>* createXslTransformer ( XslTrIdType id_type, Context* ctx_ptr = NULL) throw (FactoryException);
Parameter | Description |
---|---|
id_type |
transformer id type |
ctx_ptr |
pointer to a Context object |
Returns
(Trasformer*)
pointer to the transformer object
Returns factory's context.
Syntax
Context* getContext() const;
Returns
(Context*)
pointer to the context object
Default destructor.
Syntax
~Factory();