Class to hold XPath return types. More...
Classes | |
| class | XObjectException |
| class | XObjectInvalidConversionException |
Public Types | |
| enum | eObjectType { eTypeNull = 0, eTypeUnknown = 1, eTypeBoolean = 2, eTypeNumber = 3, eTypeString = 4, eTypeNodeSet = 5, eTypeResultTreeFrag = 6, eTypeUserDefined = 7, eTypeStringReference = 8, eTypeStringAdapter = 9, eTypeStringCached = 10, eTypeXTokenNumberAdapter = 11, eTypeXTokenStringAdapter = 12, eTypeNodeSetNodeProxy = 13, eUnknown } |
| Enumeration of possible object types. More... | |
| typedef void(FormatterListener::* | MemberFunctionPtr )(const XMLCh *const, const unsigned int) |
Public Member Functions | |
| XObject (eObjectType theObjectType) | |
| Create an XObject. More... | |
| XObject (const XObject &source) | |
| virtual const XalanDOMString & | getTypeString () const =0 |
| Given a request type, return the equivalent string. More... | |
| virtual double | num () const |
| Cast result object to a number. More... | |
| virtual bool | boolean () const |
| Cast result object to a boolean. More... | |
| virtual const XalanDOMString & | str () const |
| Cast result object to a string. More... | |
| virtual void | str (FormatterListener &formatterListener, MemberFunctionPtr function) const =0 |
| Send the string value to a FormatterListener instance. More... | |
| virtual double | stringLength () const =0 |
| Get the length of the string value of the instance. More... | |
| virtual void | str (XalanDOMString &theBuffer) const |
| Append the string value directly a string. More... | |
| virtual const XalanDocumentFragment & | rtree () const |
| Cast result object to a result tree fragment. More... | |
| virtual const NodeRefListBase & | nodeset () const |
| Cast result object to a nodelist. More... | |
| virtual void | ProcessXObjectTypeCallback (XObjectTypeCallback &theCallbackObject)=0 |
| Process a callback request for preferred type information. More... | |
| virtual void | ProcessXObjectTypeCallback (XObjectTypeCallback &theCallbackObject) const =0 |
| Process a callback request for preferred type information. More... | |
| bool | equals (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if two objects are functionally equal. More... | |
| bool | notEquals (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if two objects are functionally not equal. More... | |
| bool | lessThan (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if one object is less than the other. More... | |
| bool | lessThanOrEquals (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if one object is less than or equal the other. More... | |
| bool | greaterThan (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if one object is greater than the other. More... | |
| bool | greaterThanOrEquals (const XObject &theRHS, XPathExecutionContext &executionContext) const |
| Tell if one object is greater than or equal the other. More... | |
| eObjectType | getType () const |
| Tell what kind of class this is. More... | |
| void | setFactory (XObjectFactory *theFactory) |
Static Public Member Functions | |
| static void | initialize (MemoryManagerType &theManager) |
| Perform static initialization. More... | |
| static void | terminate () |
| Perform static shut down. More... | |
| static bool | boolean (double theNumber) |
| Static conversion function. More... | |
| static bool | boolean (const XalanDOMString &theString) |
| Static conversion function. More... | |
| static bool | boolean (const NodeRefListBase &theNodeList) |
| Static conversion function. More... | |
| static const XalanDOMString & | string (bool theBool) |
| Static conversion function. More... | |
| static void | string (bool theBool, FormatterListener &formatterListener, MemberFunctionPtr function) |
| static void | string (double theNumber, XalanDOMString &theString) |
| Static conversion function. More... | |
| static void | string (double theNumber, FormatterListener &formatterListener, MemberFunctionPtr function) |
| static void | string (const XalanNode &theNode, XalanDOMString &theString) |
| Static conversion function. More... | |
| static void | string (const XalanNode &theNode, FormatterListener &formatterListener, MemberFunctionPtr function) |
| static void | string (const NodeRefListBase &theNodeList, XalanDOMString &theString) |
| Static conversion function. More... | |
| static void | string (const NodeRefListBase &theNodeList, FormatterListener &formatterListener, MemberFunctionPtr function) |
| static double | number (bool theBoolean) |
| Static conversion function. More... | |
| static double | number (const XalanDOMString &theString, MemoryManagerType &theManager) |
| static double | number (XPathExecutionContext &executionContext, const NodeRefListBase &theNodeList) |
| Static conversion function. More... | |
| static double | number (XPathExecutionContext &executionContext, const XalanNode &theNode) |
| Static conversion function. More... | |
Protected Member Functions | |
| virtual eObjectType | getRealType () const |
| Tell what kind of class this is. More... | |
| virtual void | referenced () |
| virtual void | dereferenced () |
| virtual | ~XObject () |
Protected Member Functions inherited from XalanReferenceCountedObject | |
| XalanReferenceCountedObject () | |
| Create a XalanReferenceCountedObject. More... | |
| virtual | ~XalanReferenceCountedObject () |
| virtual unsigned int | getReferenceCount () const |
Static Protected Attributes | |
| static const XalanDOMString | s_emptyString |
| static const XalanDOMString & | s_booleanString |
| static const XalanDOMString & | s_falseString |
| static const XalanDOMString & | s_nodesetString |
| static const XalanDOMString & | s_numberString |
| static const XalanDOMString & | s_resultTreeFragmentString |
| static const XalanDOMString & | s_stringString |
| static const XalanDOMString & | s_trueString |
Friends | |
| class | XObjectPtr |
| class | XObjectFactory |
Additional Inherited Members | |
Static Protected Member Functions inherited from XalanReferenceCountedObject | |
| static void | addReference (XalanReferenceCountedObject *theInstance) |
| Increment reference count. More... | |
| static void | removeReference (XalanReferenceCountedObject *theInstance) |
| Decrement reference count. More... | |
Class to hold XPath return types.
| typedef void(FormatterListener::* XObject::MemberFunctionPtr)(const XMLCh *const, const unsigned int) |
| enum XObject::eObjectType |
| XObject::XObject | ( | eObjectType | theObjectType | ) |
Create an XObject.
| theObjectType | The enum for the type of the object. |
| XObject::XObject | ( | const XObject & | source | ) |
|
protectedvirtual |
|
virtual |
Cast result object to a boolean.
Reimplemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XNodeSetBase, XBoolean, and XNumberBase.
|
static |
Static conversion function.
|
static |
Static conversion function.
|
static |
Static conversion function.
|
protectedvirtual |
Implements XalanReferenceCountedObject.
Reimplemented in XResultTreeFrag, and XToken.
| bool XObject::equals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if two objects are functionally equal.
| theRHS | object to compare |
| executionContext | the current execution context |
|
protectedvirtual |
Tell what kind of class this is.
Reimplemented in XNodeSetNodeProxy, XTokenStringAdapter, XStringCached, XTokenNumberAdapter, XStringReference, and XStringAdapter.
| eObjectType XObject::getType | ( | ) | const |
Tell what kind of class this is.
|
pure virtual |
Given a request type, return the equivalent string.
For diagnostic purposes.
Implemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XNodeSetBase, XBoolean, and XNumberBase.
| bool XObject::greaterThan | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is greater than the other.
| theRHS | object to compare |
| bool XObject::greaterThanOrEquals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is greater than or equal the other.
| theRHS | object to compare |
|
static |
Perform static initialization.
See class XPathInit.
| bool XObject::lessThan | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is less than the other.
| theRHS | object to compare |
| bool XObject::lessThanOrEquals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is less than or equal the other.
| theRHS | object to compare |
|
virtual |
Cast result object to a nodelist.
Reimplemented in XResultTreeFrag, XNodeSetBase, XNodeSet, and XNodeSetNodeProxy.
| bool XObject::notEquals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if two objects are functionally not equal.
| theRHS | object to compare |
| executionContext | the current execution context |
|
virtual |
Cast result object to a number.
Reimplemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XNodeSetBase, XTokenStringAdapter, XTokenNumberAdapter, XBoolean, XNumber, and XNumberBase.
|
static |
Static conversion function.
|
static |
|
static |
Static conversion function.
|
static |
Static conversion function.
|
pure virtual |
Process a callback request for preferred type information.
| theCallbackObject | object to call back |
Implemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XNodeSetBase, XToken, XBoolean, and XNumberBase.
|
pure virtual |
Process a callback request for preferred type information.
| theCallbackObject | object to call back |
Implemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XNodeSetBase, XToken, XBoolean, and XNumberBase.
|
protectedvirtual |
Implements XalanReferenceCountedObject.
Reimplemented in XToken.
|
virtual |
Cast result object to a result tree fragment.
Reimplemented in XResultTreeFrag, XStringBase, and XNodeSetBase.
| void XObject::setFactory | ( | XObjectFactory * | theFactory | ) |
|
virtual |
Cast result object to a string.
Reimplemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XNodeSetBase, XString, XTokenStringAdapter, XBoolean, XStringCached, XTokenNumberAdapter, XNumber, XNumberBase, XStringReference, and XStringAdapter.
|
pure virtual |
Send the string value to a FormatterListener instance.
| formatterListener | The FormatterListener instance |
| function | A pointer to the member function of FormatterListener to call |
Implemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XNodeSetBase, XString, XTokenStringAdapter, XBoolean, XStringCached, XTokenNumberAdapter, XNumber, XNumberBase, XStringReference, and XStringAdapter.
|
virtual |
Append the string value directly a string.
| theBuffer | The buffer for the data |
Reimplemented in XResultTreeFrag, XToken, XNodeSetBase, XTokenStringAdapter, XTokenNumberAdapter, and XNumber.
|
static |
Static conversion function.
|
static |
|
static |
Static conversion function.
|
static |
|
static |
Static conversion function.
|
static |
|
static |
Static conversion function.
|
static |
|
pure virtual |
Get the length of the string value of the instance.
Implemented in XResultTreeFrag, XNull, XUnknown, XStringBase, XToken, XString, XNodeSetBase, XTokenStringAdapter, XBoolean, XStringCached, XTokenNumberAdapter, XNumberBase, XStringReference, XNumber, and XStringAdapter.
|
static |
Perform static shut down.
See class XPathInit.
|
friend |
|
friend |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
|
Xalan-C++ XSLT Processor Version 1.10 |
|
|