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.
◆ BorrowReturnMutableNodeRefList
◆ GetAndReleaseCachedString
◆ GetCachedString
◆ XObjectFactory()
XObjectFactory::XObjectFactory |
( |
MemoryManager & |
theManager | ) |
|
◆ ~XObjectFactory()
virtual XObjectFactory::~XObjectFactory |
( |
| ) |
|
|
virtual |
◆ createBoolean()
virtual const XObjectPtr XObjectFactory::createBoolean |
( |
bool |
theValue | ) |
|
|
pure virtual |
Create a boolean XObject from a boolean value.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createNodeSet() [1/2]
Create a node set XObject from a node list.
- Parameters
-
theValue | value used to create object. theValue will be owned by the new XObject. |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createNodeSet() [2/2]
Create a node set XObject from a node.
- Parameters
-
theNOde | value used to create object. |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createNumber() [1/2]
virtual const XObjectPtr XObjectFactory::createNumber |
( |
double |
theValue | ) |
|
|
pure virtual |
Create a numeric XObject from a number.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createNumber() [2/2]
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.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createString() [1/5]
Create a string XObject from a string.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createString() [2/5]
virtual const XObjectPtr XObjectFactory::createString |
( |
const XalanDOMChar * |
theValue | ) |
|
|
pure virtual |
Create a string XObject from a null-terminated array of characters.
- Parameters
-
theValue | a pointer to the array |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createString() [3/5]
virtual const XObjectPtr XObjectFactory::createString |
( |
const XalanDOMChar * |
theValue, |
|
|
XalanSize_t |
theLength |
|
) |
| |
|
pure virtual |
Create a string XObject from an array of characters.
- Parameters
-
theValue | a pointer to the array theLength the length of the array |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createString() [4/5]
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.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createString() [5/5]
◆ createStringAdapter()
Create a string XObject that will adapt another XObject to behave like a string.
The XObject holds a reference to the other XObject.
- Parameters
-
theValue | value used to create object theExecutionContext The current execution context |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createStringReference()
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
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ createUnknown()
Create an "unknown" XObject from a string.
- Parameters
-
theValue | value used to create object |
- Returns
- pointer to new object
Implemented in XObjectFactoryDefault.
◆ deleteObject()
void XObjectFactory::deleteObject |
( |
const XObject * |
theXObject | ) |
const |
|
inlineprotected |
◆ doReturnObject()
virtual bool XObjectFactory::doReturnObject |
( |
XObject * |
theXObject, |
|
|
bool |
fInReset = false |
|
) |
| |
|
protectedpure virtual |
◆ getMemoryManager()
MemoryManager& XObjectFactory::getMemoryManager |
( |
| ) |
|
|
inline |
◆ getRealType()
◆ holdReference()
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.
- Parameters
-
Implemented in XObjectFactoryDefault.
◆ reset()
virtual void XObjectFactory::reset |
( |
| ) |
|
|
pure virtual |
◆ returnObject()
bool XObjectFactory::returnObject |
( |
XObject * |
theXObject | ) |
|
|
inline |
Return an XObject to the factory.
- Parameters
-
theXObject | The XObject to be returned |
- Returns
- true if the object belongs to the factory, false if not.
Definition at line 81 of file XObjectFactory.hpp.
◆ DeleteXObjectFunctor
The documentation for this class was generated from the following file: