Package pl.net.bluesoft.rnd.processtool.ui.widgets.annotations

Examples of pl.net.bluesoft.rnd.processtool.ui.widgets.annotations.AutoWiredProperty


        for (Field f : cls.getDeclaredFields()) {
            String autoName = null;
            for (Annotation a : f.getAnnotations()) {
                if (a instanceof AutoWiredProperty) {
                    AutoWiredProperty awp = (AutoWiredProperty) a;
                    if (AutoWiredProperty.DEFAULT.equals(awp.name())) {
                        autoName = f.getName();
                    } else {
                        autoName = awp.name();
                    }
                }
            }
            String value = nvl(
                    m.get(autoName),
View Full Code Here


            if (fields != null) {
                for (Field field : fields) {
                    Map<String, Object> parameter = new HashMap<String, Object>();
                    parameter.put(NAME, field.getName());
                    parameter.put(TYPE, field.getType());
                    AutoWiredProperty awp = field.getAnnotation(AutoWiredProperty.class);
                    parameter.put(REQUIRED, awp != null && awp.required());
                    parameters.add(parameter);
                }
            }
            map.put(PARAMETERS, parameters);
            steps.add(map);
View Full Code Here

        Class cls = object.getClass();
        for (Field f : cls.getDeclaredFields()) {
            String autoName = null;
            for (Annotation a : f.getAnnotations()) {
                if (a instanceof AutoWiredProperty) {
                    AutoWiredProperty awp = (AutoWiredProperty) a;
                    if (AutoWiredProperty.DEFAULT.equals(awp.name())) {
                        autoName = f.getName();
                    } else {
                        autoName = awp.name();
                    }
                }
            }
            String value = m.get(autoName);
            if (autoName != null && value != null) {
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.ui.widgets.annotations.AutoWiredProperty

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.