All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vebqa.vebtal.model.CommandResult Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.vebqa.vebtal.model;

import javafx.beans.property.SimpleStringProperty;

@SuppressWarnings("restriction")
public class CommandResult {
	private final SimpleStringProperty command;
	private final SimpleStringProperty target;
	private final SimpleStringProperty value;
	private final SimpleStringProperty result;
	private final SimpleStringProperty loginfo;

	private final CommandType type;
	
	public CommandResult(String aCommand, String aTarget, String aValue, CommandType aType) {
		this.command = new SimpleStringProperty(aCommand);
		this.target = new SimpleStringProperty(aTarget);
		this.value = new SimpleStringProperty(aValue);
		this.result = new SimpleStringProperty("testing..");
		this.loginfo = new SimpleStringProperty("");
		this.type = aType;
	}

	public String getCommand() {
		return command.get();
	}

	public String getTarget() {
		return target.get();
	}

	public String getValue() {
		return value.get();
	}

	public String getResult() {
		return result.get();
	}
	
	public void setResult(boolean bResult) {
		if (!bResult) {
			this.result.set("FAILED");
		} else {
			this.result.set("PASSED");
		}
	}

	public String getLoginfo() {
		return this.loginfo.get();
	}
	
	public void setLogInfo(String anInfo) {
		this.loginfo.set(anInfo);
	}
	
	public CommandType getType() {
		return this.type;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy