BaseCommand.java 695 Bytes
package com.sitech.ismp.check.interfaces;

public class BaseCommand {

	private String command;	//指令内容
	private String end_flag;//结束符
	private boolean out_put = false ;//是否返回执行结果
	
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public String getEnd_flag() throws Exception{
		if(end_flag==null)
			throw new Exception("指令'"+command+"'结束符不能为空");
		return end_flag;
	}
	public void setEnd_flag(String end_flag) {
		this.end_flag = end_flag;
	}
	public boolean isOut_put() {
		return out_put;
	}
	public void setOut_put(boolean out_put) {
		this.out_put = out_put;
	}
	
	
}