Table 19-2 summarizes the methods of available through the Factory interface.
Table 19-2 Summary of Factory Methods; Tools Package
| Function | Summary |
|---|---|
| Factory
|
Constructor. |
| createDOMParser
|
Create DOM Parser. |
| createSAXParser
|
Create SAX Parser. |
| createSchemaValidator
|
Create schema validator. |
| createXPathCompProcessor
|
Create extended XPath processor. |
| createXPathCompiler
|
Create XPath compiler. |
| createXPathProcessor
|
Create XPath processor. |
| createXPointerProcessor
|
Create XPointer processor. |
| createXslCompiler
|
Create Xsl compiler. |
| createXslExtendedTransformer
|
Create XSL extended transformer. |
| createXslTransformer
|
Create XSL transformer. |
| getContext
|
Get factory's context. |
| ~Factory
|
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 |
(Factory) object
Creates DOM parser.
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 |
(DOMParser*) pointer to the parser object
Creates SAX parser.
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 |
(SAXParser*) pointer to the parser object
Creates schema validator.
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 |
(SchemaValidator*) pointer to the validator object
Creates extended XPath processor; takes XvmPrCXml value only.
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 |
(CompProcessor*) pointer to the processor object
Creates XPath compiler.
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 |
(XPathCompiler*) pointer to the compiler object
Creates XPath processor.
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 |
(Processor*) pointer to the processor object
Creates XPointer processor.
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 |
(Processor*) pointer to the processor object
Creates Xsl compiler.
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 |
(Compiler*) pointer to the compiler object
Creates XSL extended trnasformer; takes XvmTrCXml value only.
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 |
(CompTrasformer*) pointer to the transformer object
Creates XSL trnasformer.
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 |
(Trasformer*) pointer to the transformer object
Returns factory's context.
Context* getContext() const;
(Context*) pointer to the context object
Default destructor.
~Factory();