
package de.ugoe.cs.autoquest.test;

import de.ugoe.cs.autoquest.eventcore.guimodel.AbstractDefaultGUIElement;
import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement;
import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec;

/**
 * TODO comment
 * 
 * @version $Revision: $ $Date: 02.04.2012$
 * @author 2012, last modified by $Author: patrick$
 */
public class DummyGUIElement extends AbstractDefaultGUIElement implements IGUIElement {

    /**  */
    private static final long serialVersionUID = 1L;

    /** */
    private String name;

    /**
     *
     */
    public DummyGUIElement(String name) {
        this(name, null);
    }

    /**
     *
     */
    public DummyGUIElement(String name, IGUIElement parent) {
        super(null, parent);
        this.name = name;
    }

    /*
     * (non-Javadoc)
     * 
     * @see de.ugoe.cs.autoquest.eventcore.IEventTarget#getPlatform()
     */
    @Override
    public String getPlatform() {
        return "Dummy";
    }

    /*
     * (non-Javadoc)
     * 
     * @see de.ugoe.cs.autoquest.eventcore.IEventTarget#getStringIdentifier()
     */
    @Override
    public String getStringIdentifier() {
        return name;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return name;
    }

    /*
     * (non-Javadoc)
     * 
     * @see de.harms.attef.userinteraction.GUIElement#equals(GUIElement)
     */
    public boolean equals(IGUIElement other) {
        return this == other;
    }

    @Override
    public void updateSpecification(IGUIElementSpec specToIntegrateElementFor) {
        // dummy
    }

}
