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

com.googlecode.xbean.conversion.TargetDetails Maven / Gradle / Ivy

The newest version!
package com.googlecode.xbean.conversion;

import java.lang.reflect.Field;

public class TargetDetails {

	private Object instance;
	private Field field;
	private Object fieldObject;
	private Class targetClass;
	
	public TargetDetails(Object instance, Field field) throws Exception {
		super();
		this.instance = instance;
		this.field = field;
		this.targetClass = instance.getClass();
		this.fieldObject = field.get(instance);
	}
	
	
	/**
	 * @return the instance
	 */
	public Object getInstance() {
		return instance;
	}


	/**
	 * @param instance the instance to set
	 */
	public void setInstance(Object instance) {
		this.instance = instance;
	}


	/**
	 * @return the fieldObject
	 */
	public Object getFieldObject() {
		return fieldObject;
	}


	/**
	 * @param fieldObject the fieldObject to set
	 */
	public void setFieldObject(Object fieldObject) {
		this.fieldObject = fieldObject;
	}


	/**
	 * @param targetClass the targetClass to set
	 */
	public void setTargetClass(Class targetClass) {
		this.targetClass = targetClass;
	}


	/**
	 * @return the field
	 */
	public Field getField() {
		return field;
	}
	
	/**
	 * @param field the field to set
	 */
	public void setField(Field field) {
		this.field = field;
	}
	/**
	 * @return the targetClass
	 */
	public Class getTargetClass() {
		return targetClass;
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy