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  

XObjectFactoryDefault Class Reference

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

#include <XObjectFactoryDefault.hpp>

Inheritance diagram for XObjectFactoryDefault:

XObjectFactory Collaboration diagram for XObjectFactoryDefault:

List of all members.

Public Types

Public Methods

Protected Methods


Detailed Description

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


Member Typedef Documentation

typedef std::set<const XObject*> XObjectFactoryDefault::CollectionType


Constructor & Destructor Documentation

explicit XObjectFactoryDefault::XObjectFactoryDefault ()

Construct a factory for creating XObjects.

virtual XObjectFactoryDefault::~XObjectFactoryDefault () [virtual]


Member Function Documentation

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

Clone an XObject instance, and hold in the factory.

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

Reimplemented from XObjectFactory.

virtual XObject* XObjectFactoryDefault::createBoolean ( bool theValue,
bool fOptimize = true) [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 from XObjectFactory.

virtual XObject* XObjectFactoryDefault::createNodeSet ( BorrowReturnMutableNodeRefList & theValue,
bool fOptimize = true) [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 from XObjectFactory.

virtual XObject* XObjectFactoryDefault::createNull ( bool fOptimize = true) [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 from XObjectFactory.

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

Create a numeric XObject from a number.

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

Reimplemented from XObjectFactory.

virtual XObject* XObjectFactoryDefault::createResultTreeFrag ( ResultTreeFragBase * theValue,
bool fOptimize = true) [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 from XObjectFactory.

virtual XObject* XObjectFactoryDefault::createSpan ( BorrowReturnMutableNodeRefList & theValue,
bool fOptimize = true) [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 from XObjectFactory.

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

Create a string XObject from a string.

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

Reimplemented from XObjectFactory.

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

Create an "unknown" XObject from a string.

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

Reimplemented from XObjectFactory.

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

Return an XObject to the factory.

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

Reimplemented from XObjectFactory.

unsigned long XObjectFactoryDefault::getTotalBooleanInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalNodeSetInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalNullInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalNumberInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalResultTreeFragInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalSpanInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalStringInstanceCount () const

unsigned long XObjectFactoryDefault::getTotalUnknownInstanceCount () const

CollectionType::size_type XObjectFactoryDefault::instanceCount () const

Retrieve the number of instances in existence.

Returns:
number of objects

virtual void XObjectFactoryDefault::reset () [virtual]

Reset the instance.

This invalidates all existing instances created with this XObjectFactory.

Reimplemented from XObjectFactory.


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.