Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XObjectFactory Class Reference

This class handles the creation of XObjects and manages their lifetime. More...

#include <XObjectFactory.hpp>

Inheritance diagram for XObjectFactory:

XObjectFactoryDefault List of all members.

Public Types

Public Methods

Protected Methods

Friends


Detailed Description

This class handles the creation of XObjects and manages their lifetime.


Member Typedef Documentation

typedef XPathExecutionContext::BorrowReturnMutableNodeRefList XObjectFactory::BorrowReturnMutableNodeRefList


Constructor & Destructor Documentation

XObjectFactory::XObjectFactory ()

virtual XObjectFactory::~XObjectFactory () [virtual]


Member Function Documentation

XObject * XObjectFactory::clone ( const XObject & theXObject) [pure virtual]

Clone an XObject instance, and hold in the factory.

Parameters:
theXObject   the instance to clone
Returns:
a clone of the instance.

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createBoolean ( bool theValue,
bool fOptimize = true) [pure virtual]

Create a boolean XObject from a boolean value.

Parameters:
theValue   value used to create object
fOptimize   true to use static objects rather than creating new instances, default true
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createNodeSet ( BorrowReturnMutableNodeRefList & theValue,
bool fOptimize = true) [pure virtual]

Create a node set XObject from a node list.

Parameters:
theValue   value used to create object. theValue will be owned by the new XObject.
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createNull ( bool fOptimize = true) [pure virtual]

Create a null XObject.

Parameters:
theValue   value used to create object
fOptimize   true to use static objects rather than creating new instances, default true
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createNumber ( double theValue,
bool fOptimize = true) [pure virtual]

Create a numeric XObject from a number.

Parameters:
theValue   value used to create object
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createResultTreeFrag ( ResultTreeFragBase * theValue,
bool fOptimize = true) [pure virtual]

Create a result tree fragment XObject from a result tree fragment.

Parameters:
theValue   value used to create object. theValue will be owned by the new XObject.
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createSpan ( BorrowReturnMutableNodeRefList & theValue,
bool fOptimize = true) [pure virtual]

Create a span XObject from a node list.

Parameters:
theValue   value used to create object. The new object will own the pointer.
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createString ( const XalanDOMString & theValue,
bool fOptimize = true) [pure virtual]

Create a string XObject from a string.

Parameters:
theValue   value used to create object
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

XObject * XObjectFactory::createUnknown ( const XalanDOMString & theValue,
bool fOptimize = true) [pure virtual]

Create an "unknown" XObject from a string.

Parameters:
theValue   value used to create object
fOptimize   not used
Returns:
pointer to new object

Reimplemented in XObjectFactoryDefault.

void XObjectFactory::deleteObject ( const XObject * theXObject) const [protected]

Delete a FactoryObject instance.

Parameters:
theXObject   the XObject instance to delete.

bool XObjectFactory::doReturnObject ( const XObject * theXObject,
bool fInReset = false) [protected, pure virtual]

Return an XObject to the factory.

Parameters:
theXObject   XObject to be returned
fInReset   true when called during reset().

Reimplemented in XObjectFactoryDefault.

void XObjectFactory::reset () [pure virtual]

Reset the instance.

This invalidates all existing instances created with this XObjectFactory.

Reimplemented in XObjectFactoryDefault.

bool XObjectFactory::returnObject ( const XObject * theXObject)

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.

Friends And Related Function Documentation

struct DeleteXObjectFunctor [friend]


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.