X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=listener%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Flistener%2FEventInfo.java;fp=listener%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Flistener%2FEventInfo.java;h=4f117380adb4777a3534f8735364d1d2f0213299;hb=20807d81708bd33b3b5a4616fadcf3ae91bf9508;hp=1c4e48ec2cae387c60ba472c0254eb44d88eafd1;hpb=3994d4a35e7404908fc17beac75479c1a72fa915;p=xmlrouter diff --git a/listener/src/main/java/org/wamblee/xmlrouter/listener/EventInfo.java b/listener/src/main/java/org/wamblee/xmlrouter/listener/EventInfo.java index 1c4e48e..4f11738 100644 --- a/listener/src/main/java/org/wamblee/xmlrouter/listener/EventInfo.java +++ b/listener/src/main/java/org/wamblee/xmlrouter/listener/EventInfo.java @@ -15,6 +15,8 @@ */ package org.wamblee.xmlrouter.listener; +import java.util.List; + import javax.xml.transform.dom.DOMSource; import org.wamblee.xml.XMLDocument; @@ -31,15 +33,15 @@ public class EventInfo { private long time; private String source; private Id id; - private String type; + private List types; private DOMSource event; public EventInfo(long aTime, String aSource, Id aId, - String aType, DOMSource aEvent) { + List aTypes, DOMSource aEvent) { time = aTime; source = aSource; id = aId; - type = aType; + types = aTypes; event = aEvent; } @@ -55,12 +57,8 @@ public class EventInfo { return id; } - public String getType() { - return type; - } - - public void setType(String aType) { - type = aType; + public List getTypes() { + return types; } public DOMSource getEvent() { @@ -74,7 +72,7 @@ public class EventInfo { buf.append("time " + time); buf.append(", source " + source); buf.append(", id " + id); - buf.append(", type " + type); + buf.append(", types " + types); buf.append(", event " + new XMLDocument(event).print(true)); buf.append(")"); return buf.toString();