Package javaflow.components.api

Examples of javaflow.components.api.Name


import javaflow.components.api.Name;

public class NetworkApiUtil {

    public static String portNameForField(Field field) {
        Name n = field.getAnnotation(Name.class);
        final String portName;
        if (null == n) {
            String possiblePortName = field.getName().toUpperCase();
            portName = stringWithoutPossiblePortSuffix(possiblePortName);
        } else {
            portName = n.value();
        }
        return portName;
    }
View Full Code Here

TOP

Related Classes of javaflow.components.api.Name

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.