Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | Public Attributes

GenerateEvent Class Reference

This is the class for events generated by the XSL processor after it generates a new node in the result tree. More...

#include <GenerateEvent.hpp>

Collaboration diagram for GenerateEvent:
Collaboration graph
[legend]

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

This is the class for events generated by the XSL processor after it generates a new node in the result tree.

It responds to, and so is modeled from, the SAX events that are sent to the FormatterListener classes.

See also:
org.apache.xml.xpath4j.xml.FormatterListener

Definition at line 52 of file GenerateEvent.hpp.


Member Enumeration Documentation

Enumerator:
EVENTTYPE_STARTDOCUMENT 

Event type generated when a document begins.

EVENTTYPE_ENDDOCUMENT 

Event type generated when a document ends.

EVENTTYPE_STARTELEMENT 

Event type generated when an element begins (after the attributes have been processed but before the children have been added).

EVENTTYPE_ENDELEMENT 

Event type generated when an element ends, after it's children have been added.

EVENTTYPE_CHARACTERS 

Event type generated for character data (CDATA and Ignorable Whitespace have their own events).

EVENTTYPE_IGNORABLEWHITESPACE 

Event type generated for ignorable whitespace (I'm not sure how much this is actually called.

EVENTTYPE_PI 

Event type generated for processing instructions.

EVENTTYPE_COMMENT 

Event type generated after a comment has been added.

EVENTTYPE_ENTITYREF 

Event type generate after an entity ref is created.

EVENTTYPE_CDATA 

Event type generated after CDATA is generated.

Definition at line 56 of file GenerateEvent.hpp.


Constructor & Destructor Documentation

GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager 
)

Constructor for startDocument, endDocument events.

Parameters:
eventType one of the EVENTTYPE_XXX constants
GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager,
const XalanDOMChar *  name,
AttributeListType atts 
)

Constructor for startElement, endElement events.

Parameters:
eventType one of the EVENTTYPE_XXX constants
name name of the element
atts SAX attribute list
GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager,
const XalanDOMString name,
const AttributeListType atts = 0 
)

Constructor for startElement, endElement events.

Parameters:
eventType one of the EVENTTYPE_XXX constants
name name of the element
atts SAX attribute list
GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager,
const XalanDOMChar *  ch,
XalanDOMString::size_type  start,
XalanDOMString::size_type  length 
)

Constructor for characters, cdate events.

Parameters:
eventType one of the EVENTTYPE_XXX constants
ch char array from the SAX event
start start offset to be used in the char array
length end offset to be used in the chara array
GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager,
const XalanDOMChar *  name,
const XalanDOMChar *  data 
)

Constructor for processingInstruction events.

Parameters:
eventType one of the EVENTTYPE_XXX constants
name name of the processing instruction
data processing instruction data
GenerateEvent::GenerateEvent ( EventType  eventType,
MemoryManager &  theManager,
const XalanDOMChar *  data 
)

Constructor for comment and entity ref events.

Parameters:
processor XSLT processor instance
eventType one of the EVENTTYPE_XXX constants
data comment or entity ref data

Member Data Documentation

Character data from a character or cdata event.

Definition at line 194 of file GenerateEvent.hpp.

The string data in the element (comments and PIs).

Definition at line 214 of file GenerateEvent.hpp.

The type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants above.

Definition at line 189 of file GenerateEvent.hpp.

The length of the current data in m_characters.

Definition at line 204 of file GenerateEvent.hpp.

The name of the element or PI.

Definition at line 209 of file GenerateEvent.hpp.

The current attribute list.

Definition at line 219 of file GenerateEvent.hpp.

The start position of the current data in m_characters.

Definition at line 199 of file GenerateEvent.hpp.


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

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.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo