Examples of NumericResult


Examples of org.apache.cocoon.components.elementprocessor.types.NumericResult

     *         enumeration values, or an appropriate IOException
     */

    public static NumericResult extractPrintOrder(final String value)
    {
        NumericResult rval  = null;
        String        input = (value == null) ? null
                                              : value.trim();

        if (input == null)
        {
            rval = _null_result;
        }
        else if (input.equalsIgnoreCase(_right_then_down))
        {
            rval = _right_then_down_result;
        }
        else if (input.equalsIgnoreCase(_down_then_right))
        {
            rval = _down_then_right_result;
        }
        else
        {
            rval = new NumericResult(
                new IOException(
                    "\"" + input + "\" is not a valid print order"));
        }
        return rval;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.