package com.huigou.uasp.form.pojo.analysis;

import java.util.List;

import net.sf.ezmorph.bean.MorphDynaBean;

import com.huigou.uasp.form.pojo.Event;
import com.huigou.uasp.form.pojo.Options;
import com.huigou.uasp.form.pojo.Root;
import com.huigou.uasp.form.pojo.TableColumns;

public class GetRootEvent implements AttributeTypeInter{

	@Override
	public Root getRootByAttrName(String attrName, Root object,MorphDynaBean bean, List<TableColumns> tableColumnsList) {
		 MorphDynaBean  eventbean=(MorphDynaBean)bean.get(attrName);
  	     Event event=new Event();
  	     event=(Event)PublicAnalysis.getEndNodeBean(event,eventbean,attrName);
  	     object.setEvent(event);
   	     return object;
	}

}
