|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.trace.GenerateEvent
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.
DOMBuilder
,
SerializerToHTML
,
SerializerToText
,
SerializerToXML
Field Summary | |
static int |
EVENTTYPE_CDATA
Event type generated after CDATA is generated. |
static int |
EVENTTYPE_CHARACTERS
Event type generated for character data (CDATA and Ignorable Whitespace have their own events). |
static int |
EVENTTYPE_COMMENT
Event type generated after a comment has been added. |
static int |
EVENTTYPE_ENDDOCUMENT
Event type generated when a document ends. |
static int |
EVENTTYPE_ENDELEMENT
Event type generated when an element ends, after it's children have been added. |
static int |
EVENTTYPE_ENTITYREF
Event type generate after an entity ref is created. |
static int |
EVENTTYPE_IGNORABLEWHITESPACE
Event type generated for ignorable whitespace (I'm not sure how much this is actually called. |
static int |
EVENTTYPE_PI
Event type generated for processing instructions. |
static int |
EVENTTYPE_STARTDOCUMENT
Event type generated when a document begins. |
static int |
EVENTTYPE_STARTELEMENT
Event type generated when an element begins (after the attributes have been processed but before the children have been added). |
org.xml.sax.Attributes |
m_atts
The current attribute list. |
char[] |
m_characters
Character data from a character or cdata event. |
String |
m_data
The string data in the element (comments and PIs). |
int |
m_eventtype
The type of SAX event that was generated, as enumerated in the EVENTTYPE_XXX constants below. |
int |
m_length
The length of the current data in m_characters. |
String |
m_name
The name of the element or PI. |
TransformerImpl |
m_processor
The XSLT Transformer, which either directly or indirectly contains most needed information. |
int |
m_start
The start position of the current data in m_characters. |
Constructor Summary | |
GenerateEvent(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,
org.xml.sax.Attributes atts)
Constructor for startElement, endElement events. |
|
GenerateEvent(TransformerImpl processor,
int eventType,
String name,
String data)
Constructor for processingInstruction events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public TransformerImpl m_processor
TransformerImpl
public int m_eventtype
public static final int EVENTTYPE_STARTDOCUMENT
public static final int EVENTTYPE_ENDDOCUMENT
public static final int EVENTTYPE_STARTELEMENT
public static final int EVENTTYPE_ENDELEMENT
public static final int EVENTTYPE_CHARACTERS
public static final int EVENTTYPE_IGNORABLEWHITESPACE
public static final int EVENTTYPE_PI
public static final int EVENTTYPE_COMMENT
public static final int EVENTTYPE_ENTITYREF
public static final int EVENTTYPE_CDATA
public char[] m_characters
public int m_start
public int m_length
public String m_name
public String m_data
public org.xml.sax.Attributes m_atts
Constructor Detail |
public GenerateEvent(TransformerImpl processor, int eventType)
processor
- The XSLT TransformerFactory instance.eventType
- One of the EVENTTYPE_XXX constants.public GenerateEvent(TransformerImpl processor, int eventType, String name, org.xml.sax.Attributes atts)
processor
- The XSLT TransformerFactory Instance.eventType
- One of the EVENTTYPE_XXX constants.name
- The name of the element.atts
- The SAX attribute list.public GenerateEvent(TransformerImpl processor, int eventType, char[] ch, int start, int length)
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.public GenerateEvent(TransformerImpl processor, int eventType, String name, String data)
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.public GenerateEvent(TransformerImpl processor, int eventType, String data)
processor
- The XSLT processor instance.eventType
- One of the EVENTTYPE_XXX constants.data
- The comment or entity ref data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |