Package org.boris.xlloop

Examples of org.boris.xlloop.IFunctionHandler


        handlers.remove(h);
    }

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        for (Iterator i = handlers.iterator(); i.hasNext();) {
            IFunctionHandler h = (IFunctionHandler) i.next();
            if (h.hasFunction(name)) {
                return h.execute(context, name, args);
            }
        }

        throw new RequestException("#Unknown function: " + name);
    }
View Full Code Here


        throw new RequestException("#Unknown function: " + name);
    }

    public boolean hasFunction(String name) {
        for (Iterator i = handlers.iterator(); i.hasNext();) {
            IFunctionHandler h = (IFunctionHandler) i.next();
            if (h.hasFunction(name)) {
                return true;
            }
        }

        return false;
View Full Code Here

TOP

Related Classes of org.boris.xlloop.IFunctionHandler

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.