Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / DummyFieldAccess.java
package org.ntlab.deltaViewer;

import org.ntlab.trace.FieldAccess;

public class DummyFieldAccess extends FieldAccess {
	private String containerObjId = null;
	protected String thisObjId = null;

	public DummyFieldAccess(FieldAccess original) {
		super(original.getFieldName(), original.getValueClassName(), original.getValueObjId(), original.getContainerClassName(), original.getContainerObjId(), 
				original.getThisClassName(), original.getThisObjId(), original.getLineNo(), original.getThreadNo(), original.getTimeStamp());
	}
	
	public void setContainerObjId(String containerObjId) {
		this.containerObjId = containerObjId;
	}
	
	public String getContainerObjId() {
		if (containerObjId != null) return containerObjId;
		return super.getContainerObjId();
	}
	
	public void setThisObjId(String thisObjId) {
		this.thisObjId = thisObjId;
	}

	public String getThisObjId() {
		if (thisObjId != null) return thisObjId;
		return super.getThisObjId();
	}
}