Package com.greentea.relaxation.jnmf.parameters.annotations

Examples of com.greentea.relaxation.jnmf.parameters.annotations.Parameter


               parameters.addAll(resolveDynamicParameters(subject, field));

               continue;
            }

            Parameter annotation = field.getAnnotation(Parameter.class);

            Class clazz = field.getType();

            if (annotation == null)
            {
               NotParameter notParameter = field.getAnnotation(NotParameter.class);

               if (notParameter == null && clazz.getAnnotation(Configurable.class) != null)
               {
                  Method getter = resolveGetter(subject.getClass(), field);
                  parameters.addAll(resolveParameters(getter.invoke(subject)));
               }

               continue;
            }

            String name = annotation.name();
            Object minValue = castValueToClass(annotation.min(), clazz);
            Object maxValue = castValueToClass(annotation.max(), clazz);

            Method getter = resolveGetter(subject.getClass(), field);
            Method setter = resolveSetter(subject.getClass(), field);

            String description = StringUtils.defaultString(annotation.description());

            com.greentea.relaxation.jnmf.parameters.Parameter parameter = null;

            if (clazz.equals(File.class))
            {
View Full Code Here

TOP

Related Classes of com.greentea.relaxation.jnmf.parameters.annotations.Parameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.