Package com.volantis.mcs.protocols.forms

Examples of com.volantis.mcs.protocols.forms.FragmentableFormData


        domFactory = DOMFactory.getDefaultInstance();
        final String action1 = "http://www.volantis.com";
        default_FD = new EmulatedXFormDescriptor(action1, "get", "s1");
        default_FD.setContainingFormName("__DEFAULT__");
        XFFormAttributes formAttributes1 = new XFFormAttributes();
        final FragmentableFormData form =
                new FragmentableFormData(default_FD, -1, false, new ArrayList());
        formAttributes1.setFormData(form);
        formAttributes1.setAction(new LiteralLinkAssetReference(action1));
        default_FD.setFormAttributes(formAttributes1);

        final String action2 = "http://www.smudge.com";
        FD2 = new EmulatedXFormDescriptor(action2, "get", "s2");
        FD2.setContainingFormName("model2");
        XFFormAttributes formAttributes2 = new XFFormAttributes();
        final FragmentableFormData form2 =
                new FragmentableFormData(FD2, -1, false, new ArrayList());
        formAttributes2.setFormData(form2);
        formAttributes2.setAction(new LiteralLinkAssetReference(action2));
        FD2.setFormAttributes(formAttributes2);

        final String action3 = "http://www.volantis.com/delivery";
        FD3 = new EmulatedXFormDescriptor(action3, "get", "s3");
        FD3.setContainingFormName("model3");
        XFFormAttributes formAttributes3 = new XFFormAttributes();
        final FragmentableFormData form3 =
                new FragmentableFormData(FD3, -1, false, new ArrayList());
        formAttributes3.setFormData(form3);
        formAttributes3.setAction(new LiteralLinkAssetReference(action3));
        FD3.setFormAttributes(formAttributes3);

        // set expectations
View Full Code Here


    // Javadoc inherited.
    public FragmentableFormData getFormData() {
        int requestedFragmentIndex = getRequestedFragmentIndex();
        if (formData == null) {
            formData = new FragmentableFormData(formDescriptor,
                    requestedFragmentIndex, isFragmented(), fragments);
        } else {
            formData.update(requestedFragmentIndex, isFragmented(), fragments);
        }
        return formData;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.forms.FragmentableFormData

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.