Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.4

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::vector<XNodeSet*> XObjectFactoryDefault::XNodeSetCacheType

typedef std::vector<XNumber*> XObjectFactoryDefault::XNumberCacheType

typedef std::vector<XObject*> XObjectFactoryDefault::XObjectCollectionType

typedef std::vector<XString*> XObjectFactoryDefault::XStringCacheType


Enumeration Value Documentation

XObjectFactoryDefault::eDefaultXNodeSetBlockSize = 10

XObjectFactoryDefault::eDefaultXNumberBlockSize = 10

XObjectFactoryDefault::eDefaultXStringBlockSize = 10

XObjectFactoryDefault::eXNodeSetCacheMax = 40

XObjectFactoryDefault::eXNumberCacheMax = 40

XObjectFactoryDefault::eXResultTreeFragCacheMax = 40

XObjectFactoryDefault::eXStringCacheMax = 40


Constructor & Destructor Documentation

explicit XObjectFactoryDefault::XObjectFactoryDefault ( unsigned int theXStringBlockSize = eDefaultXStringBlockSize,
unsigned int theXNumberBlockSize = eDefaultXNumberBlockSize,
unsigned int theXNodeSetBlockSize = eDefaultXNodeSetBlockSize)

Construct a factory for creating XObjects.

Parameters:
theXStringBlockSize   allocation block size
theXNumberBlockSize   allocation block size
theXNodeSetBlockSize   allocation block size

virtual XObjectFactoryDefault::~XObjectFactoryDefault () [virtual]


Member Function Documentation

virtual const XObjectPtr XObjectFactoryDefault::createBoolean ( bool theValue) [virtual]

Create a boolean XObject from a boolean value.

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createNodeSet ( BorrowReturnMutableNodeRefList & theValue) [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.
Returns:
pointer to new object

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createNull () [virtual]

Create a null XObject.

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createNumber ( const XToken & theValue) [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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createNumber ( double theValue) [virtual]

Create a numeric XObject from a number.

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createString ( GetAndReleaseCachedString & theValue) [virtual]

Create a string XObject from a cached XalanDOMString,.

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createString ( const XToken & theValue) [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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createString ( const XalanDOMChar * theValue,
unsigned int theLength) [virtual]

Create a string XObject from an array of characters.

Parameters:
theValue   a pointer to the array @paran theLength the length of the array
Returns:
pointer to new object

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createString ( const XalanDOMChar * theValue) [virtual]

Create a string XObject from a null-terminated array of characters.

Parameters:
theValue   a pointer to the array
Returns:
pointer to new object

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createString ( const XalanDOMString & theValue) [virtual]

Create a string XObject from a string.

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createStringAdapter ( const XObjectPtr & theValue) [virtual]

Initial value:

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
Returns:
pointer to new object

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createStringReference ( const XalanDOMString & theValue) [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

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

Reimplemented from XObjectFactory.

virtual const XObjectPtr XObjectFactoryDefault::createUnknown ( const XalanDOMString & theValue) [virtual]

Initial value:

Create an "unknown" XObject from a string.

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

Reimplemented from XObjectFactory.

virtual bool XObjectFactoryDefault::doReturnObject ( 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.

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++ XSLT Processor Version 1.4
Copyright © 2000, 2001, 2002 The Apache Software Foundation. All Rights Reserved.