Examples of PAPIElement


Examples of com.volantis.mcs.papi.PAPIElement

            papiFactory.getPAPIElementFactory("nativemarkup");

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

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

        attributes.setPane("pane");
        attributes.setTargetLocation("pane");

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

        assertEquals("Open did not return PROCESS_ELEMENT_BODY as expected",
            result, PROCESS_ELEMENT_BODY);

        // Push the element on the stack so that we can close it later.
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * MCSI: Pop the MCSIElement from the top of the stack.
     *
     * @return The MCSIElement from the top of the stack
     */
    public PAPIElement popMCSIElement() {
        PAPIElement element = (PAPIElement) mcsiElementStack.pop();
        if (logger.isDebugEnabled()) {
            logger.debug("MCSI stack: popped " + element);
        }
        return element;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * removing it from the stack.
     *
     * @return The MCSI element from the top of the stack
     */
    public PAPIElement peekMCSIElement() {
        PAPIElement element = (PAPIElement) mcsiElementStack.peek();
        if (logger.isDebugEnabled()) {
            logger.debug("MCSI stack: peeked " + element);
        }
        return element;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     *                        popped. If this is not null and not equal to the papiElement on the top
     *                        of the stack then throw an IllegalStateException.
     */
    public void popElement(PAPIElement expectedElement) {

        PAPIElement element = (PAPIElement) papiElementStack.pop();
        if (expectedElement != null && expectedElement != element) {
            throw new IllegalStateException("PAPIELEMENT STACK:"
                                            + " Expected " + expectedElement
                                            + " popped " + element);
        }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * PAPI: Get the current PAPIElement from the top of the stack.
     *
     * @return The PAPIElement which is on the top of the stack.
     */
    public PAPIElement getCurrentElement() {
        PAPIElement element;

        if (papiElementStack == null || papiElementStack.isEmpty()) {
            element = null;
        } else {
            element = (PAPIElement) papiElementStack.peek();
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.