Exemplo n.º 1
0
    protected void populate()
    {
        MsgIn.Body.List4          List             = new MsgIn.Body.List4();
        MsgIn.Body.List4.Variant1 V1               = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1 V2               = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1 V3               = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1.List1.Record2 R1 = new MsgIn.Body.List4.Variant1.List1.Record2();
        MsgIn.Body.List4.Variant1.List1.Record2 R2 = new MsgIn.Body.List4.Variant1.List1.Record2();

        msgIn1.getBody().setList4(List);

        V1.setFieldValue(0);
        V1.getRecord1().setField1(1);
        V1.getRecord1().setField2(770);

        V2.setFieldValue(1);
        R1.setField1(3); V2.getList1().addElement(R1);
        R2.setField1(4); V2.getList1().addElement(R2);

        V3.setFieldValue(2);
        V3.getSequence1().getRecord3().setField1(3);
        V3.getSequence1().getRecord3().setField2(1284);

        msgIn1.getBody().getList4().addElement(V1);
        msgIn1.getBody().getList4().addElement(V2);
        msgIn1.getBody().getList4().addElement(V3);
    }
Exemplo n.º 2
0
    protected void populate()
    {
        MsgIn.Body.List4 List = new MsgIn.Body.List4();
        MsgIn.Body.List4.Variant1 V1 = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1 V2 = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1 V3 = new MsgIn.Body.List4.Variant1();
        MsgIn.Body.List4.Variant1.List1.Record2 R1 = new MsgIn.Body.List4.Variant1.List1.Record2();
        MsgIn.Body.List4.Variant1.List1.Record2 R2 = new MsgIn.Body.List4.Variant1.List1.Record2();

        msgIn1.getBody().setList4(List);

        V1.setFieldValue(0);
        V1.getRecord1().setField1(1);
        V1.getRecord1().setField2(770);

        V2.setFieldValue(1);
        R1.setField1(3); V2.getList1().addElement(R1);
        R2.setField1(4); V2.getList1().addElement(R2);

        V3.setFieldValue(2);
        V3.getSequence1().getRecord3().setField1(3);
        V3.getSequence1().getRecord3().setField2(1284);

        msgIn1.getBody().getList4().addElement(V1);
        msgIn1.getBody().getList4().addElement(V2);
        msgIn1.getBody().getList4().addElement(V3);
    }