view src/sample/merge/Rep_Cmd.java @ 34:7d80c9318695

*** empty log message ***
author pin
date Wed, 31 Jan 2007 02:06:52 +0900
parents d01cc686b54f
children 679491395f8f
line wrap: on
line source

package sample.merge;

public class Rep_Cmd  {
	public int cmd;
	public int sid;
	public int eid;
	public int seq;
	public int len;
	public int lineno;
	public boolean stat;
	
	public  String string;
	private int textsiz;
	
	public Rep_Cmd(int cmd,int sid,int eid, int seq, int lineno, int textsiz, String string) {
		this.cmd = cmd;
		this.sid = sid;
		this.eid = eid;
		this.seq = seq;
		this.textsiz = textsiz;
		this.lineno = lineno;
		this.string = string;
	}

	public String toString(){
/*		String[] cmdString = new String[14];
		cmdString[6] = "REP_INSERT_CMD";
		cmdString[9] = "REP_DELETE_CMD";
		cmdString[13] = "REP_REPLACE_CMD";*/
		String repCmdString = new String(cmd + "," + sid + "," + eid + "," + seq + "," + lineno + "," + textsiz +  ", stat:" + stat + "," + string);
		return repCmdString;
		
	}
	
}