Package net.sourceforge.temply.base

Examples of net.sourceforge.temply.base.Resolver


        return _scripts;
    }

    public void run(String script, TemplyUI ui, Template template, Destination destination)
    throws Exception {
        Resolver resolver = new Resolver(this);

        Binding binding = new Binding();
        binding.setVariable("resolver", resolver);
        binding.setVariable("ui", ui);
        _gse.run(script, binding);

        String text = template.getText();

        VarExpressionFinder finder = new VarExpressionFinder(_repository);
        for (VarExpression varExp : finder.find(text)) {
            text = finder.replace(text, varExp, resolver.resolve(varExp.toString()));
        }
       
        Collection<VarExpression> unresolvedExpressions = finder.find(text);
        if (!unresolvedExpressions.isEmpty()) {
            StringBuffer sb = new StringBuffer("Unresolved expressions:\n");
View Full Code Here

TOP

Related Classes of net.sourceforge.temply.base.Resolver

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.