This class handles the creation of XObjects and manages their lifetime. More...
#include <XObjectFactory.hpp>
Inherited by XObjectFactoryDefault.
This class handles the creation of XObjects and manages their lifetime.
Definition at line 53 of file XObjectFactory.hpp.
typedef XPathExecutionContext::BorrowReturnMutableNodeRefList XObjectFactory::BorrowReturnMutableNodeRefList |
Definition at line 57 of file XObjectFactory.hpp.
Definition at line 59 of file XObjectFactory.hpp.
Definition at line 58 of file XObjectFactory.hpp.
XObjectFactory::XObjectFactory | ( | MemoryManager & | theManager | ) |
virtual XObjectFactory::~XObjectFactory | ( | ) | [virtual] |
virtual const XObjectPtr XObjectFactory::createBoolean | ( | bool | theValue | ) | [pure virtual] |
Create a boolean XObject from a boolean value.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createNodeSet | ( | BorrowReturnMutableNodeRefList & | theValue | ) | [pure virtual] |
Create a node set XObject from a node list.
theValue | value used to create object. theValue will be owned by the new XObject. |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createNodeSet | ( | XalanNode * | theValue | ) | [pure virtual] |
Create a node set XObject from a node.
theNOde | value used to create object. |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createNumber | ( | const XToken & | theValue | ) | [pure virtual] |
Create a numeric XObject from an XToken.
The XToken instance must be inexistence for the lifetime of the object.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createNumber | ( | double | theValue | ) | [pure virtual] |
Create a numeric XObject from a number.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createString | ( | const XalanDOMString & | theValue | ) | [pure virtual] |
Create a string XObject from a string.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createString | ( | const XalanDOMChar * | theValue | ) | [pure virtual] |
Create a string XObject from a null-terminated array of characters.
theValue | a pointer to the array |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createString | ( | const XalanDOMChar * | theValue, | |
XalanSize_t | theLength | |||
) | [pure virtual] |
Create a string XObject from an array of characters.
theValue | a pointer to the array theLength the length of the array |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createString | ( | const XToken & | theValue | ) | [pure virtual] |
Create a string XObject from an XToken.
The XToken instance must be inexistence for the lifetime of the object.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createString | ( | GetCachedString & | theValue | ) | [pure virtual] |
Create a string XObject from a cached XalanDOMString,.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createStringAdapter | ( | const XObjectPtr & | theValue, | |
XPathExecutionContext & | theExecutionContext | |||
) | [pure virtual] |
Create a string XObject that will adapt another XObject to behave like a string.
The XObject holds a reference to the other XObject.
theValue | value used to create object theExecutionContext The current execution context |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createStringReference | ( | const XalanDOMString & | theValue | ) | [pure virtual] |
Create a string XObject from a string.
The XObject will hold a reference to the supplied string, so the string must be in scope for the lifetime of the instance
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
virtual const XObjectPtr XObjectFactory::createUnknown | ( | const XalanDOMString & | theValue | ) | [pure virtual] |
Create an "unknown" XObject from a string.
theValue | value used to create object |
Implemented in XObjectFactoryDefault.
void XObjectFactory::deleteObject | ( | const XObject * | theXObject | ) | const [inline, protected] |
Delete a FactoryObject instance.
theXObject | the XObject instance to delete. |
Definition at line 300 of file XObjectFactory.hpp.
virtual bool XObjectFactory::doReturnObject | ( | XObject * | theXObject, | |
bool | fInReset = false | |||
) | [protected, pure virtual] |
Return an XObject to the factory.
Implemented in XObjectFactoryDefault.
MemoryManager& XObjectFactory::getMemoryManager | ( | ) | [inline] |
Reimplemented in XObjectFactoryDefault.
Definition at line 69 of file XObjectFactory.hpp.
XObject::eObjectType XObjectFactory::getRealType | ( | const XObject & | theXObject | ) | const [inline, protected] |
Return the actual implementation type of an XObject.
theXObject | the XObject |
Definition at line 289 of file XObjectFactory.hpp.
virtual void XObjectFactory::holdReference | ( | XObjectPtr | theValue | ) | [pure virtual] |
Hold a reference to an XObject instance until the factory is reset.
This is needed in a very few cases when the object lifetime needs to extend after the execution of an XPath expression.
theValue | The XObjectPtr instance. |
Implemented in XObjectFactoryDefault.
virtual void XObjectFactory::reset | ( | ) | [pure virtual] |
Reset the instance.
This invalidates all existing instances created with this XObjectFactory.
Implemented in XObjectFactoryDefault.
bool XObjectFactory::returnObject | ( | XObject * | theXObject | ) | [inline] |
Return an XObject to the factory.
theXObject | The XObject to be returned |
Definition at line 81 of file XObjectFactory.hpp.
friend struct DeleteXObjectFunctor [friend] |
Definition at line 279 of file XObjectFactory.hpp.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|