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  

XObject Class Reference

Class to hold XPath return types. More...

#include <XObject.hpp>

Inheritance diagram for XObject:

XBoolean XNodeSet XNull XNumber XPathExpression::XToken XResultTreeFrag XString XUnknown List of all members.

Public Types

Public Methods

Protected Methods

Static Protected Attributes

Friends


Detailed Description

Class to hold XPath return types.


Member Enumeration Documentation

enum XObject::eObjectType

Enumeration of possible object types.

Enumeration values:
eTypeNull  
eTypeUnknown  
eTypeBoolean  
eTypeNumber  
eTypeString  
eTypeNodeSet  
eTypeResultTreeFrag  
eTypeUserDefined  
eUnknown  

Constructor & Destructor Documentation

XObject::XObject ( eObjectType theObjectType)

Create an XObject.

Parameters:
theObjectType   The enum for the type of the object.

XObject::XObject ( const XObject & source)

virtual XObject::~XObject () [protected, virtual]


Member Function Documentation

void XObject::ProcessXObjectTypeCallback ( XObjectTypeCallback & theCallbackObject) const [pure virtual]

Process a callback request for preferred type information.

Parameters:
theCallbackObject   object to call back

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XString, and XUnknown.

void XObject::ProcessXObjectTypeCallback ( XObjectTypeCallback & theCallbackObject) [pure virtual]

Process a callback request for preferred type information.

Parameters:
theCallbackObject   object to call back

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XString, and XUnknown.

bool XObject::boolean () const [virtual]

Cast result object to a boolean.

Returns:
boolean value

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XResultTreeFrag, XString, and XUnknown.

XObject * XObject::clone ( void * theAddress = 0) const [pure virtual]

Clone the instance.

Parameters:
If   theAddress is not null, the XObject will clone itself into that address.
Returns:
a clone of the instance.

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XSpan, XString, and XUnknown.

bool XObject::equals ( const XObject & theRHS) const

Tell if two objects are functionally equal.

Parameters:
theRHS   object to compare
executionContext   the current execution context
Returns:
true if they are equal

eObjectType XObject::getType () const

Tell what kind of class this is.

Returns:
numeric type value

XalanDOMString XObject::getTypeString () const [pure virtual]

Given a request type, return the equivalent string.

For diagnostic purposes.

Returns:
string for type

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XString, and XUnknown.

bool XObject::greaterThan ( const XObject & theRHS) const

Tell if one object is greater than the other.

Parameters:
theRHS   object to compare
Returns:
true if they are equal

bool XObject::greaterThanOrEqual ( const XObject & theRHS) const

Tell if one object is greater than or equal the other.

Parameters:
theRHS   object to compare
Returns:
true if they are equal

bool XObject::lessThan ( const XObject & theRHS) const

Tell if one object is less than the other.

Parameters:
theRHS   object to compare
Returns:
true if they are equal

bool XObject::lessThanOrEqual ( const XObject & theRHS) const

Tell if one object is less than or equal the other.

Parameters:
theRHS   object to compare
Returns:
true if they are equal

const NodeRefListBase & XObject::nodeset () const [virtual]

Cast result object to a nodelist.

Returns:
node list

Reimplemented in XNodeSet, and XResultTreeFrag.

bool XObject::notEquals ( const XObject & theRHS) const

Tell if two objects are functionally not equal.

Parameters:
theRHS   object to compare
executionContext   the current execution context
Returns:
true if they are equal

double XObject::num () const [virtual]

Cast result object to a number.

Returns:
numeric value

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XString, and XUnknown.

const ResultTreeFragBase & XObject::rtree ( XPathExecutionContext & executionContext) const [virtual]

Cast result object to a result tree fragment.

Parameters:
executionContext   the current execution context
Returns:
result tree fragment

Reimplemented in XNodeSet, XResultTreeFrag, and XString.

const XalanDOMString & XObject::str () const [virtual]

Cast result object to a string.

Returns:
string value

Reimplemented in XBoolean, XNodeSet, XNull, XNumber, XPathExpression::XToken, XResultTreeFrag, XString, and XUnknown.


Friends And Related Function Documentation

class XObjectFactory [friend]


Member Data Documentation

const XalanDOMString XObject::s_nullString [static, protected]


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.