1 16 19 package org.apache.xalan.trace; 20 21 import org.apache.xalan.transformer.TransformerImpl; 22 import org.xml.sax.Attributes ; 23 24 36 public class GenerateEvent implements java.util.EventListener 37 { 38 39 44 public TransformerImpl m_processor; 45 46 49 public int m_eventtype; 50 51 52 55 public char m_characters[]; 56 57 60 public int m_start; 61 62 65 public int m_length; 66 67 70 public String m_name; 71 72 75 public String m_data; 76 77 80 public Attributes m_atts; 81 82 88 public GenerateEvent(TransformerImpl processor, int eventType) 89 { 90 m_processor = processor; 91 m_eventtype = eventType; 92 } 93 94 102 public GenerateEvent(TransformerImpl processor, int eventType, String name, 103 Attributes atts) 104 { 105 106 m_name = name; 107 m_atts = atts; 108 m_processor = processor; 109 m_eventtype = eventType; 110 } 111 112 121 public GenerateEvent(TransformerImpl processor, int eventType, char ch[], 122 int start, int length) 123 { 124 125 m_characters = ch; 126 m_start = start; 127 m_length = length; 128 m_processor = processor; 129 m_eventtype = eventType; 130 } 131 132 140 public GenerateEvent(TransformerImpl processor, int eventType, String name, 141 String data) 142 { 143 144 m_name = name; 145 m_data = data; 146 m_processor = processor; 147 m_eventtype = eventType; 148 } 149 150 157 public GenerateEvent(TransformerImpl processor, int eventType, String data) 158 { 159 160 m_data = data; 161 m_processor = processor; 162 m_eventtype = eventType; 163 } 164 } 165 | Popular Tags |