All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.onetwo.common.annotation.AnnoContext Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.annotation;

import java.lang.annotation.Annotation;

@SuppressWarnings({"rawtypes", "unchecked"})
public class AnnoContext {
	
	public static AnnoContext create(Object srcObject, Enum eventAction){
		return new AnnoContext(srcObject, eventAction);
	}

	private Object srcObject;
	private Enum eventAction;
	private Object annoIn;
	private Annotation annotation;
	
	protected AnnoContext(){
	}
	
	public AnnoContext(Object srcObject, Enum eventAction) {
		super();
		this.srcObject = srcObject;
		this.eventAction = eventAction;
	}
	
	public  T getSrcObject() {
		return (T)srcObject;
	}
	public  T getAnnoIn() {
		return (T)annoIn;
	}
	public Annotation getAnnotation() {
		return annotation;
	}

	public void setSrcObject(Object srcObject) {
		this.srcObject = srcObject;
	}

	public void setAnnoIn(Object annoIn) {
		this.annoIn = annoIn;
	}

	public void setAnnotation(Annotation annotation) {
		this.annotation = annotation;
	}

	public Enum getEventAction() {
		return eventAction;
	}

	public void setEventAction(Enum eventAction) {
		this.eventAction = eventAction;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy