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

org.xson.web.ognl.FieldVo Maven / Gradle / Ivy

Go to download

xco-web is an easy to use control layer framework, is part of the SOA system, using xml language to describe the controller.

The newest version!
package org.xson.web.ognl;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;

public class FieldVo implements Comparable {

	public static Map, FieldVoWrapper>	fieldVoWrapperCache	= new HashMap, FieldVoWrapper>(32);

	private String								name;
	private Method								getter;
	private Method								setter;

	public FieldVo(Field field, Method getter, Method setter, Class clazz) {
		this.name = field.getName();
		this.getter = getter;
		this.getter.setAccessible(true);
		this.setter = setter;
		this.setter.setAccessible(true);
	}

	public String getName() {
		return name;
	}

	public Method getGetter() {
		return getter;
	}

	public Method getSetter() {
		return setter;
	}

	@Override
	public int compareTo(FieldVo o) {
		return this.name.compareTo(o.name);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy