Package net.sf.laja.parser.cdd.statetemplate

Examples of net.sf.laja.parser.cdd.statetemplate.StatementPrefixer


public class StatementConverter {
    public static final String[] TEMPLATES = new String[] { "Template", "Entity", "Value" };

    public String prefixAttribute(String prefix, String statement, String searchFor) {
        return new StatementPrefixer(prefix, statement, searchFor).prefixAttribute();
    }
View Full Code Here


    public String prefixAttribute(String prefix, String statement, String searchFor) {
        return new StatementPrefixer(prefix, statement, searchFor).prefixAttribute();
    }

    public String prefixAttribute(String prefix, String statement, String searchFor, String replace) {
        return new StatementPrefixer(prefix, statement, searchFor, replace).prefixAttribute();
    }
View Full Code Here

        if (searchFor.length() >= 4 && searchFor.startsWith("get") && Character.isUpperCase(searchFor.charAt(3))) {
            replace = "set" + searchFor.substring(3, searchFor.length() - 1) + variable + ")";
        } else {
            replace = "set" + StringUtils.capitalize(searchFor) + "(" + variable + ")";
        }
        return new StatementPrefixer("", statement, searchFor, replace).prefixAttribute();
    }
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.cdd.statetemplate.StatementPrefixer

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.