*/
package org.wamblee.xmlrouter.listener;
+import java.util.List;
+
import javax.xml.transform.dom.DOMSource;
import org.wamblee.xml.XMLDocument;
private long time;
private String source;
private Id<DOMSource> id;
- private String type;
+ private List<String> types;
private DOMSource event;
public EventInfo(long aTime, String aSource, Id<DOMSource> aId,
- String aType, DOMSource aEvent) {
+ List<String> aTypes, DOMSource aEvent) {
time = aTime;
source = aSource;
id = aId;
- type = aType;
+ types = aTypes;
event = aEvent;
}
return id;
}
- public String getType() {
- return type;
- }
-
- public void setType(String aType) {
- type = aType;
+ public List<String> getTypes() {
+ return types;
}
public DOMSource getEvent() {
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();