diff --git a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/BodyEvent.java b/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/BodyEvent.java deleted file mode 100755 index 39de16baf7..0000000000 --- a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/BodyEvent.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Logback: the reliable, generic, fast and flexible logging framework. - * Copyright (C) 1999-2015, QOS.ch. All rights reserved. - * - * This program and the accompanying materials are dual-licensed under - * either the terms of the Eclipse Public License v1.0 as published by - * the Eclipse Foundation - * - * or (per the licensee's choosing) - * - * under the terms of the GNU Lesser General Public License version 2.1 - * as published by the Free Software Foundation. - */ -package ch.qos.logback.core.joran.event.stax; - -import javax.xml.stream.Location; - -public class BodyEvent extends StaxEvent { - - private String text; - - BodyEvent(String text, Location location) { - super(null, location); - this.text = text; - } - - public String getText() { - return text; - } - - void append(String txt) { - text += txt; - } - - @Override - public String toString() { - return "BodyEvent(" + getText() + ")" + location.getLineNumber() + "," + location.getColumnNumber(); - } -} diff --git a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/EndEvent.java b/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/EndEvent.java deleted file mode 100755 index 3fc7a4a38d..0000000000 --- a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/EndEvent.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Logback: the reliable, generic, fast and flexible logging framework. - * Copyright (C) 1999-2015, QOS.ch. All rights reserved. - * - * This program and the accompanying materials are dual-licensed under - * either the terms of the Eclipse Public License v1.0 as published by - * the Eclipse Foundation - * - * or (per the licensee's choosing) - * - * under the terms of the GNU Lesser General Public License version 2.1 - * as published by the Free Software Foundation. - */ -package ch.qos.logback.core.joran.event.stax; - -import javax.xml.stream.Location; - -/** - * Created with IntelliJ IDEA. User: ceki Date: 7/2/13 Time: 4:07 PM To change - * this template use File | Settings | File Templates. - */ -public class EndEvent extends StaxEvent { - - public EndEvent(String name, Location location) { - super(name, location); - } - - @Override - public String toString() { - return "EndEvent(" + getName() + ") [" + location.getLineNumber() + "," + location.getColumnNumber() + "]"; - } - -} diff --git a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StartEvent.java b/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StartEvent.java deleted file mode 100755 index b848f0d91b..0000000000 --- a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StartEvent.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Logback: the reliable, generic, fast and flexible logging framework. - * Copyright (C) 1999-2015, QOS.ch. All rights reserved. - * - * This program and the accompanying materials are dual-licensed under - * either the terms of the Eclipse Public License v1.0 as published by - * the Eclipse Foundation - * - * or (per the licensee's choosing) - * - * under the terms of the GNU Lesser General Public License version 2.1 - * as published by the Free Software Foundation. - */ -package ch.qos.logback.core.joran.event.stax; - -import ch.qos.logback.core.joran.spi.ElementPath; - -import javax.xml.stream.Location; -import javax.xml.stream.events.Attribute; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -public class StartEvent extends StaxEvent { - - List attributes; - public ElementPath elementPath; - - StartEvent(ElementPath elementPath, String name, Iterator attributeIterator, Location location) { - super(name, location); - populateAttributes(attributeIterator); - this.elementPath = elementPath; - } - - private void populateAttributes(Iterator attributeIterator) { - while (attributeIterator.hasNext()) { - if (attributes == null) { - attributes = new ArrayList(2); - } - attributes.add(attributeIterator.next()); - } - } - - public ElementPath getElementPath() { - return elementPath; - } - - public List getAttributeList() { - return attributes; - } - - Attribute getAttributeByName(String name) { - if (attributes == null) - return null; - - for (Attribute attr : attributes) { - if (name.equals(attr.getName().getLocalPart())) - return attr; - } - return null; - } - - @Override - public String toString() { - return "StartEvent(" + getName() + ") [" + location.getLineNumber() + "," + location.getColumnNumber() + "]"; - } -} diff --git a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StaxEvent.java b/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StaxEvent.java deleted file mode 100755 index 67f241368f..0000000000 --- a/logback-core/src/main/java/ch/qos/logback/core/joran/event/stax/StaxEvent.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Logback: the reliable, generic, fast and flexible logging framework. - * Copyright (C) 1999-2015, QOS.ch. All rights reserved. - * - * This program and the accompanying materials are dual-licensed under - * either the terms of the Eclipse Public License v1.0 as published by - * the Eclipse Foundation - * - * or (per the licensee's choosing) - * - * under the terms of the GNU Lesser General Public License version 2.1 - * as published by the Free Software Foundation. - */ -package ch.qos.logback.core.joran.event.stax; - -import javax.xml.stream.Location; - -public class StaxEvent { - - final String name; - final Location location; - - StaxEvent(String name, Location location) { - this.name = name; - this.location = location; - - } - - public String getName() { - return name; - } - - public Location getLocation() { - return location; - } - -}