com.opensymphony.xwork2.ognl.OgnlReflectionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findsecbugs-plugin-deps Show documentation
Show all versions of findsecbugs-plugin-deps Show documentation
This module create facades for all the APIs (classes, interfaces and annotations)
that are use in the test code. The objective is to avoid the needed to download
all the framework supported by the static analyzer.
package com.opensymphony.xwork2.ognl;
import ognl.OgnlException;
import javax.management.ReflectionException;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Map;
public class OgnlReflectionProvider {
private OgnlUtil ognlUtil;
public void setOgnlUtil(OgnlUtil ognlUtil) {
this.ognlUtil = ognlUtil;
}
public Field getField(Class inClass, String name) {
return null;
}
public Method getGetMethod(Class targetClass, String propertyName)
throws IntrospectionException, ReflectionException {
return null;
}
public Method getSetMethod(Class targetClass, String propertyName)
throws IntrospectionException, ReflectionException {
return null;
}
public void setProperties(Map props, Object o, Map context) {
ognlUtil.setProperties(props, o, context);
}
public void setProperties(Map props, Object o, Map context, boolean throwPropertyExceptions) throws ReflectionException{
ognlUtil.setProperties(props, o, context, throwPropertyExceptions);
}
public void setProperties(Map properties, Object o) {
ognlUtil.setProperties(properties, o);
}
public PropertyDescriptor getPropertyDescriptor(Class targetClass,
String propertyName) throws IntrospectionException,
ReflectionException {
return null;
}
public void copy(Object from, Object to, Map context,
Collection exclusions, Collection inclusions) {
}
public Object getRealTarget(String property, Map context, Object root)
throws ReflectionException {
return null;
}
public void setProperty(String name, Object value, Object o, Map context) {
}
public void setProperty(String name, Object value, Object o, Map context, boolean throwPropertyExceptions) {
}
public Map getBeanMap(Object source) throws IntrospectionException,
ReflectionException {
return null;
}
public Object getValue(String expression, Map context, Object root)
throws ReflectionException {
return null;
}
public void setValue(String expression, Map context, Object root,
Object value) throws ReflectionException {
}
public PropertyDescriptor[] getPropertyDescriptors(Object source)
throws IntrospectionException {
return ognlUtil.getPropertyDescriptors(source);
}
}