Xalan-C++ API Reference
1.12.0
|
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XObject-derived classes. More...
#include <xalanc/XPath/XObjectTypeCallback.hpp>
Public Member Functions | |
XObjectTypeCallback (XPathExecutionContext &theExecutionContext) | |
virtual | ~XObjectTypeCallback () |
virtual void | Number (const XObject &theXObject, double theValue)=0 |
Call back the XObject with a numeric value. More... | |
virtual void | Boolean (const XObject &theXObject, bool theValue)=0 |
Call back the XObject with a boolean value. More... | |
virtual void | String (const XObject &theXObject, const XalanDOMString &theValue)=0 |
Call back the XObject with a string value. More... | |
virtual void | ResultTreeFragment (const XObject &theXObject, const XalanDocumentFragment &theValue)=0 |
Call back the XObject with a result tree fragment value. More... | |
virtual void | ResultTreeFragment (const XObject &theXObject, XalanDocumentFragment &theValue)=0 |
Call back the XObject with a result tree fragment value. More... | |
virtual void | NodeSet (const XObject &theXObject, const NodeRefListBase &theValue)=0 |
Call back the XObject with a node set value. More... | |
virtual void | Unknown (const XObject &theObject, const XalanDOMString &theName)=0 |
Call back the XObject with an unknown value. More... | |
virtual void | Null (const XObject &theObject)=0 |
Call back the XObject with a null value. More... | |
XPathExecutionContext & | getExecutionContext () |
The purpose of this class is to provide a way to get the "preferred" or closest matching type for XObject-derived classes.
The idea is to pass a reference to an instance of this class to an XObject instance. It will then call back to the member function that most closely matches its type. This makes it possible to get preferred typing information without doing RTTI or other such type introspections.
Definition at line 54 of file XObjectTypeCallback.hpp.
xalanc::XObjectTypeCallback::XObjectTypeCallback | ( | XPathExecutionContext & | theExecutionContext | ) |
|
virtual |
|
pure virtual |
Call back the XObject with a boolean value.
theXObject | |
theValue |
|
inline |
Definition at line 143 of file XObjectTypeCallback.hpp.
|
pure virtual |
Call back the XObject with a node set value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with a null value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with a numeric value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with a result tree fragment value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with a result tree fragment value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with a string value.
theXObject | |
theValue |
|
pure virtual |
Call back the XObject with an unknown value.
theXObject | |
theValue |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:40 for Xalan-C++ API Reference by 1.8.17