Package com.opensymphony.xwork2.conversion.impl

Examples of com.opensymphony.xwork2.conversion.impl.XWorkConverter.convertValue()


                }
            }
        }

        XWorkConverter conv = ((Container)stack.getContext().get(ActionContext.CONTAINER)).getInstance(XWorkConverter.class);
        return conv.convertValue(stack.getContext(), result, asType);
    }

    /**
     * Returns a set from comma delimted Strings.
     * @param s The String to parse.
View Full Code Here


        XWorkConverter conv = ((Container)stack.getContext().get(ActionContext.CONTAINER)).getInstance(XWorkConverter.class);

        Object result = parser.evaluate(openChars, expression, ognlEval, maxLoopCount);

        return conv.convertValue(stack.getContext(), result, asType);
    }

    /**
     * Returns a set from comma delimted Strings.
     * @param s The String to parse.
View Full Code Here

        XWorkConverter conv = ((Container)stack.getContext().get(ActionContext.CONTAINER)).getInstance(XWorkConverter.class);

        Object result = parser.evaluate(openChars, expression, ognlEval, maxLoopCount);

        return conv.convertValue(stack.getContext(), result, asType);
    }

    /**
     * Returns a set from comma delimted Strings.
     * @param s The String to parse.
View Full Code Here

        if (result instanceof Collection) {
            @SuppressWarnings("unchecked")
            Collection<Object> casted = (Collection<Object>)result;
            resultCol = new ArrayList<String>(casted.size());
            for (Object element : casted) {
                String stringElement = (String)conv.convertValue(context, element, String.class);
                if (shallBeIncluded(stringElement, excludeEmptyElements)) {
                    if (evaluator != null) {
                        stringElement = evaluator.evaluate(stringElement).toString();
                    }
                    resultCol.add(stringElement);
View Full Code Here

                    resultCol.add(stringElement);
                }
            }
        } else {
            resultCol = new ArrayList<String>(1);
            String stringResult = (String)conv.convertValue(context, result, String.class);
            if (shallBeIncluded(stringResult, excludeEmptyElements)) {
                if (evaluator != null) {
                    stringResult = evaluator.evaluate(stringResult).toString();
                }
                resultCol.add(stringResult);
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.