2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.ufcspa.simdecs.diagram.util;
7 import com.sun.xml.internal.ws.util.StringUtils;
8 import java.lang.reflect.Field;
9 import java.lang.reflect.Method;
15 public class ReflectionUtils {
18 public static Method getSetterMethod(Class reflectClass, Field field) {
19 for (Method method : reflectClass.getMethods()) {
20 if (method.getName().equals("set" + StringUtils.capitalize(field.getName()))) {
28 public static Method getGetterMethod(Class reflectClass, Field field) {
29 for (Method method : reflectClass.getMethods()) {
30 if (method.getName().equals("get" + StringUtils.capitalize(field.getName()))) {