Package org.apache.xalan.trace
Class GenerateEvent
java.lang.Object
org.apache.xalan.trace.GenerateEvent
- All Implemented Interfaces:
EventListener
Event generated by the XSL processor after it generates a new node in the result tree.
This event responds to and is modeled on the SAX events that are sent to the
formatter listener FormatterToXXX)classes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe current attribute list.char[]
Character data from a character or cdata event.The string data in the element (comments and PIs).int
The type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants below.int
The length of the current data in m_characters.The name of the element or PI.The XSLT Transformer, which either directly or indirectly contains most needed information.int
The start position of the current data in m_characters. -
Constructor Summary
ConstructorsConstructorDescriptionGenerateEvent
(TransformerImpl processor, int eventType) Constructor for startDocument, endDocument events.GenerateEvent
(TransformerImpl processor, int eventType, char[] ch, int start, int length) Constructor for characters, cdate events.GenerateEvent
(TransformerImpl processor, int eventType, String data) Constructor for comment and entity ref events.GenerateEvent
(TransformerImpl processor, int eventType, String name, String data) Constructor for processingInstruction events.GenerateEvent
(TransformerImpl processor, int eventType, String name, Attributes atts) Constructor for startElement, endElement events. -
Method Summary
-
Field Details
-
m_processor
The XSLT Transformer, which either directly or indirectly contains most needed information.- See Also:
-
m_eventtype
public int m_eventtypeThe type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants below. -
m_characters
public char[] m_charactersCharacter data from a character or cdata event. -
m_start
public int m_startThe start position of the current data in m_characters. -
m_length
public int m_lengthThe length of the current data in m_characters. -
m_name
The name of the element or PI. -
m_data
The string data in the element (comments and PIs). -
m_atts
The current attribute list.
-
-
Constructor Details
-
GenerateEvent
Constructor for startDocument, endDocument events.- Parameters:
processor
- The XSLT TransformerFactory instance.eventType
- One of the EVENTTYPE_XXX constants.
-
GenerateEvent
Constructor for startElement, endElement events.- Parameters:
processor
- The XSLT TransformerFactory Instance.eventType
- One of the EVENTTYPE_XXX constants.name
- The name of the element.atts
- The SAX attribute list.
-
GenerateEvent
Constructor for characters, cdate events.- Parameters:
processor
- The XSLT TransformerFactory instance.eventType
- One of the EVENTTYPE_XXX constants.ch
- The char array from the SAX event.start
- The start offset to be used in the char array.length
- The end offset to be used in the chara array.
-
GenerateEvent
Constructor for processingInstruction events.- Parameters:
processor
- The instance of the XSLT processor.eventType
- One of the EVENTTYPE_XXX constants.name
- The name of the processing instruction.data
- The processing instruction data.
-
GenerateEvent
Constructor for comment and entity ref events.- Parameters:
processor
- The XSLT processor instance.eventType
- One of the EVENTTYPE_XXX constants.data
- The comment or entity ref data.
-