package net.java.amateras.xlsbeans.processor;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.List;

import jxl.Sheet;
import net.java.amateras.xlsbeans.NeedPostProcess;
import net.java.amateras.xlsbeans.Utils;
import net.java.amateras.xlsbeans.xml.AnnotationReader;

/**
 * 
 * @author Naoki Takezoe
 * @see net.java.amateras.xlsbeans.annotation.SheetName
 */
public class SheetNameProcessor implements FieldProcessor {

	public void doProcess(Sheet sheet, Object obj, Method setter,
			Annotation cell, AnnotationReader reader,
			List<NeedPostProcess> needPostProcess) throws Exception {
		
		Utils.invokeSetter(setter, obj, sheet.getName());
	}

}
