package de.ugoe.cs.eventbench.windows.data; import java.io.ByteArrayInputStream; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import de.ugoe.cs.eventbench.data.ReplayableEvent; /** *
* Convenience class for working with Windows MFC events. *
* * @author Steffen Herbold * @version 1.0 */ public class WindowsEvent extends ReplayableEvent* Id for object serialization. *
*/ private static final long serialVersionUID = 1L; /** ** Constructor. Creates a new WindowEvent. *
* * @see de.ugoe.cs.eventbench.data.Event#Event(String) * @param type * type of the event. */ public WindowsEvent(String type) { super(type); } @Override protected boolean targetEquals(String otherTarget) { return MFCTargetComparator.compare(target, otherTarget); } int targetHash = 0; @Override protected int targetHashCode() { if( targetHash==0 ) { int multiplier = 17; if (target != null) { Document doc; try { DocumentBuilder documentBuilder = DocumentBuilderFactory .newInstance().newDocumentBuilder(); doc = documentBuilder.parse(new ByteArrayInputStream( ("