Package org.geoscript.js.process

Examples of org.geoscript.js.process.MetaProcess


    public String getTitle(ScriptEngine engine) throws ScriptException {
        String filename = (String) engine.get(ScriptEngine.FILENAME);
        if (filename == null) {
            filename = "<Unknown Source>";
        }
        MetaProcess process = getProcess(engine);
        String title = process.getTitle();
        if (title == null) {
            LOGGER.warning("Process missing required title in " + filename);
            // TODO provide process name
            title = "Untitled";
        }
View Full Code Here


            exports = (Scriptable) exportsObj;
        } else {
            throw new RuntimeException("Couldn't get exports for process in " + filename);
        }
        Object processObj = exports.get("process", exports);
        MetaProcess process = null;
        if (processObj instanceof Wrapper) {
            process = (MetaProcess) ((Wrapper) processObj).unwrap();
        } else {
            throw new RuntimeException("Missing 'process' exports from " + filename);
        }
View Full Code Here

TOP

Related Classes of org.geoscript.js.process.MetaProcess

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.