Examples of extract_fixed()


Examples of org.apache.yoko.orb.CORBA.Any.extract_fixed()

        if (!val._OB_type().equivalent(type_))
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();

        try {
            java.math.BigDecimal f = val.extract_fixed();

            if (f == null || f.scale() > origType_.fixed_scale())
                throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
            value_ = f;
        } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.Any.extract_fixed()

        if (!val._OB_type().equivalent(type_))
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();

        try {
            java.math.BigDecimal f = val.extract_fixed();

            if (f == null || f.scale() > origType_.fixed_scale())
                throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
            value_ = f;
        } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

            //
            // Test: to_any()
            //
            av = f1.to_any();
            f = av.extract_fixed();
            TEST(f.equals(new BigDecimal("98")));

            //
            // Test: copy
            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

        //
        // Test: to_any()
        //
        av = f1.to_any();
        f = av.extract_fixed();
        TEST(f.equals(new BigDecimal("98")));

        //
        // Test: copy
        //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

            //
            // Test: to_any()
            //
            av = f1.to_any();
            f = av.extract_fixed();
            TEST(f.equals(new BigDecimal("98")));

            //
            // Test: copy
            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_fixed(testValue,
                            setup.getClientOrb().create_fixed_tc(
                                (short)4,(short)1));
        assertEquals(testValue, outAny.extract_fixed());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_fixed());
        assertTrue(outAny.equal(inAny));
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

                                (short)4,(short)1));
        assertEquals(testValue, outAny.extract_fixed());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_fixed());
        assertTrue(outAny.equal(inAny));
    }

    /**
     * @see #testCorrectClassOnBootclasspath()
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

    {
        BigDecimal testValue = new BigDecimal("471.1");

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FixedHolder(testValue));
        assertEquals(testValue, outAny.extract_fixed());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_fixed());
        assertTrue(outAny.equal(inAny));
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

        outAny.insert_Streamable(new FixedHolder(testValue));
        assertEquals(testValue, outAny.extract_fixed());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_fixed());
        assertTrue(outAny.equal(inAny));
    }

    public void test_fixed_stream1()
    {
View Full Code Here

Examples of org.omg.CORBA.Any.extract_fixed()

        Any any = setup.getClientOrb().create_any();
        any.type (setup.getClientOrb().create_fixed_tc((short)4,(short)1));
        any.create_output_stream().write_fixed (testValue);
        // don't bounce, because we want to extract from the
        // output stream we just created
        assertEquals (testValue, any.extract_fixed());
    }

    public void test_fixed_stream2()
    {
        BigDecimal testValue = new BigDecimal("471.1");
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.