Package com.volantis.mcs.papi

Examples of com.volantis.mcs.papi.SelectAttributes


            PAPIAttributes papiAttributes)
            throws PAPIException {

        MarinerPageContext pageContext =
                ContextInternals.getMarinerPageContext(context);
        SelectAttributes attributes = (SelectAttributes) papiAttributes;
        Precept precept = Precept.MATCH_FIRST;
        Value expr = BooleanValue.TRUE;

        if (attributes.getPrecept() != null) {
            precept = Precept.literal(attributes.getPrecept());

            if (precept == null) {
                throw new PAPIException(exceptionLocalizer.format(
                        "unrecognized-precept-value",
                        attributes.getPrecept()));
            }
        }

        if (attributes.getExpr() != null) {
            ExpressionContext expressionContext =
                    ContextInternals.getEnvironmentContext(context).
                            getExpressionContext();

            try {
                expr = expressionContext.getFactory().
                        createExpressionParser().
                        parse(attributes.getExpr()).evaluate(expressionContext);
            } catch (ExpressionException e) {
                throw new PAPIException(e);
            }
        }
View Full Code Here


        assertNotNull("Unknown element name, select check testcase.",
            factory);

        PAPIElement element = factory.createPAPIElement();
        SelectAttributes attributes = (SelectAttributes)
                factory.createElementSpecificAttributes();

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.papi.SelectAttributes

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.