Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Public Attributes | List of all members
xalanc::SelectionEvent Class Reference

#include <xalanc/XSLT/SelectionEvent.hpp>

Collaboration diagram for xalanc::SelectionEvent:
[legend]

Public Types

enum  eSelectionType { eNone, eBoolean, eNodeSet, eUnknown }
 

Public Member Functions

 SelectionEvent (StylesheetExecutionContext &executionContext, const XalanNode *sourceNode, const ElemTemplateElement &styleNode, const XalanDOMString &attributeName, const XPath &xpath, const XObjectPtr selection)
 Create an event originating at the given node of the style tree. More...
 
 SelectionEvent (StylesheetExecutionContext &executionContext, const XalanNode *sourceNode, const ElemTemplateElement &styleNode, const XalanDOMString &attributeName, const XalanDOMString &xpathExpression, const XObjectPtr selection)
 Create an event originating at the given node of the style tree. More...
 
 SelectionEvent (StylesheetExecutionContext &executionContext, const XalanNode *sourceNode, const ElemTemplateElement &styleNode, const XalanDOMString &attributeName, const XPath &xpath, bool selection)
 Create an event originating at the given node of the style tree. More...
 
 SelectionEvent (StylesheetExecutionContext &executionContext, const XalanNode *sourceNode, const ElemTemplateElement &styleNode, const XalanDOMString &attributeName, const XPath &xpath, const NodeRefListBase &selection)
 Create an event originating at the given node of the style tree. More...
 
virtual ~SelectionEvent ()
 

Public Attributes

const StylesheetExecutionContextm_executionContext
 The executionContext instance. More...
 
const XalanNodem_sourceNode
 The current context node. More...
 
const ElemTemplateElementm_styleNode
 The node in the style tree where the event occurs. More...
 
const XalanDOMStringm_attributeName
 The attribute name from which the selection is made. More...
 
const XalanDOMStringm_xpathExpression
 The XPath expression evaluated. More...
 
const XObjectPtr m_selection
 The result of the selection. More...
 
const eSelectionType m_type
 The type of the selection. More...
 
bool m_boolean
 
const NodeRefListBase *const m_nodeList
 

Detailed Description

Definition at line 47 of file SelectionEvent.hpp.

Member Enumeration Documentation

◆ eSelectionType

Enumerator
eNone 
eBoolean 
eNodeSet 
eUnknown 

Definition at line 130 of file SelectionEvent.hpp.

Constructor & Destructor Documentation

◆ SelectionEvent() [1/4]

xalanc::SelectionEvent::SelectionEvent ( StylesheetExecutionContext executionContext,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString attributeName,
const XPath xpath,
const XObjectPtr  selection 
)

Create an event originating at the given node of the style tree.

Parameters
executionContextThe current execution context
sourceNodeThe source node selected.
styleNodeThe node in the style tree reference for the event
attributeNameThe attribute name where the XPath expression was supplied
xpathThe XPath instance executed
selectionThe result of evaluating the XPath

◆ SelectionEvent() [2/4]

xalanc::SelectionEvent::SelectionEvent ( StylesheetExecutionContext executionContext,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString attributeName,
const XalanDOMString xpathExpression,
const XObjectPtr  selection 
)

Create an event originating at the given node of the style tree.

Parameters
executionContextThe current execution context
sourceNodeThe source node selected.
styleNodeThe node in the style tree reference for the event
attributeNameThe attribute name where the XPath expression was supplied
xpathExpressionThe XPath expression executed
selectionThe result of evaluating the XPath

◆ SelectionEvent() [3/4]

xalanc::SelectionEvent::SelectionEvent ( StylesheetExecutionContext executionContext,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString attributeName,
const XPath xpath,
bool  selection 
)

Create an event originating at the given node of the style tree.

Parameters
executionContextThe current execution context
sourceNodeThe source node selected.
styleNodeThe node in the style tree reference for the event
attributeNameThe attribute name where the XPath expression was supplied
xpathThe XPath instance executed
selectionThe result of evaluating the XPath

◆ SelectionEvent() [4/4]

xalanc::SelectionEvent::SelectionEvent ( StylesheetExecutionContext executionContext,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString attributeName,
const XPath xpath,
const NodeRefListBase selection 
)

Create an event originating at the given node of the style tree.

Parameters
executionContextThe current execution context
sourceNodeThe source node selected.
styleNodeThe node in the style tree reference for the event
attributeNameThe attribute name where the XPath expression was supplied
xpathThe XPath instance executed
selectionThe result of evaluating the XPath

◆ ~SelectionEvent()

virtual xalanc::SelectionEvent::~SelectionEvent ( )
virtual

Member Data Documentation

◆ m_attributeName

const XalanDOMString& xalanc::SelectionEvent::m_attributeName

The attribute name from which the selection is made.

Definition at line 150 of file SelectionEvent.hpp.

◆ m_boolean

bool xalanc::SelectionEvent::m_boolean

Definition at line 169 of file SelectionEvent.hpp.

◆ m_executionContext

const StylesheetExecutionContext& xalanc::SelectionEvent::m_executionContext

The executionContext instance.

Definition at line 135 of file SelectionEvent.hpp.

◆ m_nodeList

const NodeRefListBase* const xalanc::SelectionEvent::m_nodeList

Definition at line 171 of file SelectionEvent.hpp.

◆ m_selection

const XObjectPtr xalanc::SelectionEvent::m_selection

The result of the selection.

If it's null, m_sourceNode was selected, or some specific type was selected. See the above enums.

Definition at line 162 of file SelectionEvent.hpp.

◆ m_sourceNode

const XalanNode* xalanc::SelectionEvent::m_sourceNode

The current context node.

Definition at line 140 of file SelectionEvent.hpp.

◆ m_styleNode

const ElemTemplateElement& xalanc::SelectionEvent::m_styleNode

The node in the style tree where the event occurs.

Definition at line 145 of file SelectionEvent.hpp.

◆ m_type

const eSelectionType xalanc::SelectionEvent::m_type

The type of the selection.

Definition at line 167 of file SelectionEvent.hpp.

◆ m_xpathExpression

const XalanDOMString& xalanc::SelectionEvent::m_xpathExpression

The XPath expression evaluated.

Definition at line 155 of file SelectionEvent.hpp.


The documentation for this class was generated from the following file: