com.github.siwenyan.si.model.SiModelCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of side Show documentation
Show all versions of side Show documentation
Java runner of Selenium IDE project
package com.github.siwenyan.si.model;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class SiModelCommand {
private String id = UUID.randomUUID().toString();
private String comment = "";
private String command = "";
private String target = "";
private List> targets = new ArrayList>();
private String value = "";
private Boolean opensWindow = null;
private String windowHandleName = null;
private Long windowTimeout = null;
@Override
public String toString() {
return this.command;
}
@Override
public boolean equals(Object o) {
if (null == o || !(o instanceof SiModelCommand)) {
return false;
}
SiModelCommand c = (SiModelCommand) o;
return c.command.equals(this.command)
&& c.target.equals(this.target)
&& c.value.equals(this.value)
;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = (null == command ? "//MISSING_COMMAND" : command.trim());
}
public String getTarget() {
return target;
}
public void setTarget(String target) {
this.target = (null == target ? "" : target.trim());
}
public List> getTargets() {
return targets;
}
public void setTargets(List> targets) {
this.targets = targets;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = (null == value ? "" : value.trim());
}
public Long getWindowTimeout() {
return windowTimeout;
}
public void setWindowTimeout(Long windowTimeout) {
this.windowTimeout = windowTimeout;
}
public String getWindowHandleName() {
return windowHandleName;
}
public void setWindowHandleName(String windowHandleName) {
this.windowHandleName = windowHandleName;
}
public Boolean getOpensWindow() {
return null == opensWindow ? false : opensWindow;
}
public void setOpensWindow(Boolean opensWindow) {
this.opensWindow = opensWindow;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy