## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# SelectionEvent Class Reference

Collaboration diagram for SelectionEvent:

[legend]
List of all members.

## 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.
- 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.
- 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.
- 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.
- virtual ~SelectionEvent ()

## Public Attributes

- const StylesheetExecutionContext & m_executionContext
    The executionContext instance.
- const XalanNode * m_sourceNode
    The current context node.
- const ElemTemplateElement & m_styleNode
    The node in the style tree where the event occurs.
- const XalanDOMString & m_attributeName
    The attribute name from which the selection is made.
- const XalanDOMString & m_xpathExpression
    The XPath expression evaluated.
- const XObjectPtr m_selection
    The result of the selection.
- const eSelectionType m_type
    The type of the selection.
- bool m_boolean
- const NodeRefListBase *const m_nodeList

## Member Enumeration Documentation

enum SelectionEvent::eSelectionType

  | Enumeration values:
  eNone |
  eBoolean |
  eNodeSet |
  eUnknown |

## Constructor & Destructor Documentation

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:
  executionContext | The current execution context
  sourceNode | The source node selected.
  styleNode | The node in the style tree reference for the event
  attributeName | The attribute name where the XPath expression was supplied
  xpath | The XPath instance executed
  selection | The result of evaluating the XPath

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:
  executionContext | The current execution context
  sourceNode | The source node selected.
  styleNode | The node in the style tree reference for the event
  attributeName | The attribute name where the XPath expression was supplied
  xpathExpression | The XPath expression executed
  selection | The result of evaluating the XPath

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:
  executionContext | The current execution context
  sourceNode | The source node selected.
  styleNode | The node in the style tree reference for the event
  attributeName | The attribute name where the XPath expression was supplied
  xpath | The XPath instance executed
  selection | The result of evaluating the XPath

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:
  executionContext | The current execution context
  sourceNode | The source node selected.
  styleNode | The node in the style tree reference for the event
  attributeName | The attribute name where the XPath expression was supplied
  xpath | The XPath instance executed
  selection | The result of evaluating the XPath

virtual SelectionEvent::~SelectionEvent | ( |  | ) | `[virtual]`

## Member Data Documentation

const XalanDOMString& SelectionEvent::m_attributeName

| The attribute name from which the selection is made.

bool SelectionEvent::m_boolean

const StylesheetExecutionContext& SelectionEvent::m_executionContext

| The executionContext instance.

const NodeRefListBase* const SelectionEvent::m_nodeList

const XObjectPtr 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.

const XalanNode* SelectionEvent::m_sourceNode

| The current context node.

const ElemTemplateElement& SelectionEvent::m_styleNode

| The node in the style tree where the event occurs.

const eSelectionType SelectionEvent::m_type

| The type of the selection.

const XalanDOMString& SelectionEvent::m_xpathExpression

| The XPath expression evaluated.

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

- SelectionEvent.hpp

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.