|
Xalan-C++ API Reference 1.12.0
|
Class to hold XPath return types. More...
#include <xalanc/XPath/XObject.hpp>
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 XPathExecutionContext::GetCachedString | GetCachedString |
| typedef void(FormatterListener::* | MemberFunctionPtr) (const XMLCh *const, const FormatterListener::size_type) |
Protected Member Functions | |
| XObject (const XObject &) | |
| Create an XObject from another XObject. | |
| XObject (const XObject &source, MemoryManager &theManager) | |
| Create an XObject from another XObject. | |
| MemoryManager & | getMemoryManager () const |
| Get the MemoryManager for this instance. | |
| void | throwInvalidConversionException (const XalanDOMString &theTargetType) const |
| virtual eObjectType | getRealType () const |
| Tell what kind of class this is. | |
| virtual void | referenced () |
| virtual void | dereferenced () |
| virtual | ~XObject () |
Protected Member Functions inherited from xalanc::XalanReferenceCountedObject | |
| XalanReferenceCountedObject () | |
| Create a XalanReferenceCountedObject. | |
| virtual | ~XalanReferenceCountedObject () |
| virtual XalanSize_t | getReferenceCount () const |
Friends | |
| class | XObjectPtr |
| class | XObjectFactory |
Additional Inherited Members | |
Static Protected Member Functions inherited from xalanc::XalanReferenceCountedObject | |
| static void | addReference (XalanReferenceCountedObject *theInstance) |
| Increment reference count. | |
| static void | removeReference (XalanReferenceCountedObject *theInstance) |
| Decrement reference count. | |
Class to hold XPath return types.
Definition at line 63 of file XObject.hpp.
Definition at line 69 of file XObject.hpp.
| typedef void(FormatterListener::* xalanc::XObject::MemberFunctionPtr) (const XMLCh *const, const FormatterListener::size_type) |
Definition at line 180 of file XObject.hpp.
Enumeration of possible object types.
Definition at line 74 of file XObject.hpp.
| xalanc::XObject::XObject | ( | eObjectType | theObjectType, |
| MemoryManager & | theMemoryManager | ||
| ) |
Create an XObject.
| theObjectType | The enum for the type of the object. |
| theMemoryManager | The MemoryManager instance. |
|
protectedvirtual |
|
inlinestatic |
Static conversion function.
Returns the boolean value of the supplied NodeRefListBase.
| theNodeList | The NodeRefListBase to convert. |
Definition at line 398 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Returns the boolean value of the supplied XalanDOMString.
| theString | The XalanDOMString to convert. |
Definition at line 385 of file XObject.hpp.
Static conversion function.
Returns the boolean value of the supplied double.
| theString | The double to convert. |
Definition at line 372 of file XObject.hpp.
|
pure virtual |
Cast result object to a boolean.
| executionContext | The current XPathExecutionContext |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XToken, xalanc::XUnknown, and xalanc::XResultTreeFrag.
Implements xalanc::XalanReferenceCountedObject.
Reimplemented in xalanc::XToken, and xalanc::XResultTreeFrag.
| bool xalanc::XObject::equals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if two objects are functionally equal.
| theRHS | object to compare |
| executionContext | the current execution context |
|
inlineprotected |
Get the MemoryManager for this instance.
Definition at line 821 of file XObject.hpp.
|
protectedvirtual |
Tell what kind of class this is.
Reimplemented in xalanc::XNodeSetNodeProxy, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XTokenNumberAdapter, and xalanc::XTokenStringAdapter.
|
inline |
Tell what kind of class this is.
Definition at line 358 of file XObject.hpp.
|
pure virtual |
Given a request type, return the equivalent string.
For diagnostic purposes.
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XToken, xalanc::XUnknown, and xalanc::XResultTreeFrag.
| bool xalanc::XObject::greaterThan | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is greater than the other.
| theRHS | object to compare |
| bool xalanc::XObject::greaterThanOrEquals | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is greater than or equal the other.
| theRHS | object to compare |
Perform static initialization.
See class XPathInit.
| theMemoryManager | The MemoryManager instance. |
| bool xalanc::XObject::lessThan | ( | const XObject & | theRHS, |
| XPathExecutionContext & | executionContext | ||
| ) | const |
Tell if one object is less than the other.
| theRHS | object to compare |
| bool xalanc::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.
This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.
| executionContext | The current XPathExecutionContext |
Reimplemented in xalanc::XNodeSet, xalanc::XNodeSetNodeProxy, and xalanc::XNodeSetBase.
| bool xalanc::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 |
Cast result object to a number.
This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.
Reimplemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, and xalanc::XResultTreeFrag.
|
virtual |
Cast result object to a number.
| executionContext | The current XPathExecutionContext |
Reimplemented in xalanc::XBoolean, xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XStringBase, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, and xalanc::XNumberBase.
|
inlinestatic |
Definition at line 699 of file XObject.hpp.
|
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 xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XToken, xalanc::XUnknown, and xalanc::XResultTreeFrag.
|
pure virtual |
Process a callback request for preferred type information.
| theCallbackObject | object to call back |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XToken, xalanc::XUnknown, and xalanc::XResultTreeFrag.
Implements xalanc::XalanReferenceCountedObject.
Reimplemented in xalanc::XToken.
|
virtual |
Cast result object to a result tree fragment.
| executionContext | The current XPathExecutionContext |
Reimplemented in xalanc::XNodeSetBase, xalanc::XStringBase, and xalanc::XResultTreeFrag.
|
inline |
Definition at line 731 of file XObject.hpp.
|
pure virtual |
Cast result object to a string.
This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.
| executionContext | The current XPathExecutionContext |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
pure virtual |
Send the string value to a FormatterListener instance.
This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.
| formatterListener | The FormatterListener instance |
| function | A pointer to the member function of FormatterListener to call |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
pure virtual |
Append the string value directly a string.
This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.
| theBuffer | The buffer for the data |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
pure virtual |
Cast result object to a string.
| executionContext | The current XPathExecutionContext |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
pure virtual |
Send the string value to a FormatterListener instance.
| executionContext | The current XPathExecutionContext |
| formatterListener | The FormatterListener instance |
| function | A pointer to the member function of FormatterListener to call |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
pure virtual |
Append the string value directly a string.
| executionContext | The current XPathExecutionContext |
| theBuffer | The buffer for the data |
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, xalanc::XStringBase, xalanc::XBoolean, and xalanc::XStringBase.
|
inlinestatic |
Static conversion function.
Returns a reference to a XalanDOMString instance with the string value of the boolean.
| theBool | The boolean value to convert. |
Definition at line 412 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the boolean.
| theBool | The boolean value to convert. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 441 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Appends the supplied boolean value to a string.
| theBool | The boolean value to convert. |
| theString | The string value of the provided boolean value. |
Definition at line 425 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the NodeRefListBase.
| theNodeList | The NodeRefListBase to convert. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 557 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Append the string value of the NodeRefListBase to the supplied XalanDOMString parameter.
| theNodeList | The NodeRefListBase to convert. |
| theString | The output XalanDOMString. |
Definition at line 534 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the NodeRefListBase.
| theNodeList | The NodeRefListBase to convert. |
| theExecutionContext | The current XPathExecutionContext. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 642 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Append the string value of the NodeRefListBase to the supplied XalanDOMString parameter.
| theNodeList | The NodeRefListBase to convert. |
| theExecutionContext | The current XPathExecutionContext. |
| theString | The output XalanDOMString. |
Definition at line 619 of file XObject.hpp.
|
inlinestatic |
Calls the supplied FormatterListener member function with the string.
| theString | The XalanDOMString to convert. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 669 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the XalanNode.
| theNode | The XalanNode to convert. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 516 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Append the string value of the XalanNode to the supplied XalanDOMString parameter.
| theNode | The XalanNode to convert. |
| theString | The output XalanDOMString. |
Definition at line 498 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the XalanNode.
| theNode | The XalanNode to convert. |
| theExecutionContext | The current XPathExecutionContext. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 597 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Append the string value of the XalanNode to the supplied XalanDOMString parameter.
| theNode | The XalanNode to convert. |
| theExecutionContext | The current XPathExecutionContext. |
| theString | The output XalanDOMString. |
Definition at line 579 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Calls the supplied FormatterListener member function with the string value of the double.
| theNumber | The double to convert. |
| formatterListener | The FormatterListener instance. |
| function | The FormatterListener member function to call. |
Definition at line 480 of file XObject.hpp.
|
inlinestatic |
Static conversion function.
Append the string value of the double to the supplied XalanDOMString parameter.
| theNumber | The double to convert. |
| theString | The output XalanDOMString. |
Definition at line 464 of file XObject.hpp.
References xalanc::NumberToDOMString().
|
pure virtual |
Get the length of the string value of the instance.
Implemented in xalanc::XBoolean, xalanc::XNodeSetBase, xalanc::XNumber, xalanc::XString, xalanc::XStringAdapter, xalanc::XStringCached, xalanc::XStringReference, xalanc::XToken, xalanc::XTokenNumberAdapter, xalanc::XTokenStringAdapter, xalanc::XUnknown, xalanc::XResultTreeFrag, xalanc::XNumberBase, and xalanc::XStringBase.
|
protected |
|
friend |
Definition at line 728 of file XObject.hpp.
|
friend |
Definition at line 67 of file XObject.hpp.
|
staticprotected |
Definition at line 850 of file XObject.hpp.
|
staticprotected |
Definition at line 848 of file XObject.hpp.
|
staticprotected |
Definition at line 852 of file XObject.hpp.
|
staticprotected |
Definition at line 854 of file XObject.hpp.
|
staticprotected |
Definition at line 856 of file XObject.hpp.
|
staticprotected |
Definition at line 858 of file XObject.hpp.
|
staticprotected |
Definition at line 860 of file XObject.hpp.
|
staticprotected |
Definition at line 862 of file XObject.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sat Mar 22 2025 18:54:18 for Xalan-C++ API Reference by
1.9.8