Package com.volantis.mcs.xdime

Examples of com.volantis.mcs.xdime.XDIMEResult


            throws XDIMEException {

        MarinerPageContext pageContext = getPageContext(context);

        // do this first so that current pane is not surpressed.
        XDIMEResult result = super.doElementEnd(context);
       
        // Pop the anonymous region buffer that was pushed on at the
        // end of the doElementStart() method.
        pageContext.popContainerInstance(anonymousRegionInstance);     
View Full Code Here


    // Javadoc inherited
    protected XDIMEResult callOpenOnProtocol(final XDIMEContextInternal context,
                                      final XDIMEAttributes attributes)
            throws XDIMEException {

        XDIMEResult result = XDIMEResult.PROCESS_ELEMENT_BODY;

        propertyName = getPropertyName(attributes, context);
        if (propertyName != null) {
            targetId = getTargetId(context, attributes);
View Full Code Here

     */
    private HtmlElement createHTMLElement(XDIMEContextInternal context)
            throws XDIMEException {
        HtmlElement html = new HtmlElement(context);

        XDIMEResult result = html.callOpenOnProtocol(context, null);

        return html;
    }
View Full Code Here

            throws XDIMEException {

        MarinerPageContext pageContext = getPageContext(context);

        // do this first so that current pane is not surpressed.
        XDIMEResult result = super.doElementEnd(context);
       
        final VolantisProtocol protocol = getProtocol(context);

        // TODO: are XForms elements allowed in response?
        //
View Full Code Here

    public XDIMEResult doElementStart(XDIMEContextInternal context,
            XDIMEAttributes attributes) throws XDIMEException {

        MarinerPageContext pageContext = getPageContext(context);

        XDIMEResult result;

        // We store the canvas initialisation data on the parent html
        // element. So get a reference to the parent html element.
        Stack elementStack = ((XDIMEContextImpl)context).getStack();
View Full Code Here

            throws XDIMEException {

        MarinerPageContext pageContext = getPageContext(context);

        // do this first so that current pane is not surpressed.
        XDIMEResult result = super.doElementEnd(context);
       
        // XForms controls can only appear in the body element, so at this
        // point we know we've found all of them. Now generate any implicit
        // elements for the last forms model and register the complete form
        // descriptors with the session context.
View Full Code Here

        // todo: later: this should return a real project object so that we
        // can avoid using test specific code paths within the code.
        pageContextMock.expects.getCurrentProject().returns(null).any();

        XDIMEResult result = html.callOpenOnProtocol(xdimeContext, null);

        assertTrue("xdime mode should be XDIMEMode.XDIME2",
                html.getXDIMEMode() == XDIMEMode.XDIME2);
    }
View Full Code Here

        // In XDIME CP the canvas is processed in the containing <cdm:canvas>.
        pageContextMock.expects.initialisedCanvas().returns(true);

        xdimeContext.setInitialRequestContext(requestContextMock);

        XDIMEResult result = html.callOpenOnProtocol(xdimeContext, null);

        assertTrue("xdime mode should be XDIMEMode.XDIME1",
                html.getXDIMEMode() == XDIMEMode.XDIMECP);
    }
View Full Code Here

    public final XDIMEResult elementStart(XDIMEContext context,
            XDIMEAttributes attributes) throws XDIMEException {

        // should process the body by default
        XDIMEContextInternal contextInternal = (XDIMEContextInternal) context;
        XDIMEResult result;

        contextInternal.enteringXDIMECPElement();
      
        // perform validation
        validationStrategy.open(contextInternal, elementType);
View Full Code Here

    // Javadoc inherited.
    public final XDIMEResult elementEnd(XDIMEContext context)
            throws XDIMEException {

        XDIMEContextInternal contextInternal = (XDIMEContextInternal) context;
        XDIMEResult result = XDIMEResult.CONTINUE_PROCESSING;

        if (!skipped) {

            // Validate before actually finishing off the element as it
            // ensures that the contents are correct, i.e. all required
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xdime.XDIMEResult

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.