1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.joran.event;
15
16 import org.xml.sax.Attributes;
17 import org.xml.sax.Locator;
18 import org.xml.sax.helpers.AttributesImpl;
19
20 import ch.qos.logback.core.joran.spi.Pattern;
21
22 public class StartEvent extends SaxEvent {
23
24 final public Attributes attributes;
25 final public Pattern pattern;
26
27 StartEvent(Pattern pattern, String namespaceURI, String localName, String qName,
28 Attributes attributes, Locator locator) {
29 super(namespaceURI, localName, qName, locator);
30
31 this.attributes = new AttributesImpl(attributes);
32 this.pattern = pattern;
33 }
34
35 public Attributes getAttributes() {
36 return attributes;
37 }
38
39
40 @Override
41 public String toString() {
42 return "StartEvent("+getQName()+") ["+locator.getLineNumber()+","+locator.getColumnNumber()+"]";
43 }
44
45 }