Examples of member_count()


Examples of org.omg.CORBA.TypeCode.member_count()

        // We know that this is of kind tk_struct
        TypeCode expectedTypeCode = any.type();

        int expectedMemberCount = 0;
        try {
            expectedMemberCount = expectedTypeCode.member_count();
        } catch (BadKind badKind) { // impossible
        }
        if (expectedMemberCount != value.length) {
            clearData();
            throw new InvalidValue();
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

        // We know that this is of kind tk_struct
        TypeCode expectedTypeCode = any.type();

        int expectedMemberCount = 0;
        try {
            expectedMemberCount = expectedTypeCode.member_count();
        } catch (BadKind badKind) { // impossible
        }
        if (expectedMemberCount != value.length) {
            clearData();
            throw new InvalidValue();
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

    @Test
    public void testCompactTypeCode() throws Exception
    {
        TypeCode typeCode = AccountHelper.type();

        assertEquals(3, typeCode.member_count());

        assertEquals("name", typeCode.member_name(0));
        assertEquals("address", typeCode.member_name(1));
        assertEquals("balance", typeCode.member_name(2));
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

        assertEquals("address", typeCode.member_name(1));
        assertEquals("balance", typeCode.member_name(2));

        TypeCode compacted = typeCode.get_compact_typecode();

        assertEquals(3, compacted.member_count());

        assertEquals("", compacted.member_name(0));
        assertEquals("", compacted.member_name(1));
        assertEquals("", compacted.member_name(2));
    }
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

    @Test
    public void testRecursiveCompactedTypeCode() throws Exception
    {
        TypeCode typeCode = RecursiveValueTypeHelper.type();

        assertEquals(2, typeCode.member_count());
        assertEquals("name", typeCode.member_name(0));
        assertEquals("seq", typeCode.member_name(1));

        final TypeCode nested = typeCode.member_type(1).content_type().content_type();
        assertEquals("name", nested.member_name(0));
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

        assertEquals("name", nested.member_name(0));
        assertEquals("seq", nested.member_name(1));

        TypeCode compacted = typeCode.get_compact_typecode();

        assertEquals(2, compacted.member_count());
        assertEquals("", compacted.member_name(0));
        assertEquals("", compacted.member_name(1));

        final TypeCode nested2 = compacted.member_type(1).content_type().content_type();
        assertEquals(compacted, nested2);
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

    @Test
    public void testCreateDynamicTypeCode() throws Exception
    {
        TypeCode typeCode = org.jacorb.orb.TypeCode.create_tc(MyClass.class);

        assertEquals(2, typeCode.member_count());
        assertEquals(typeCode.member_type(0).type_modifier(), typeCode.member_type(1).type_modifier());
    }
}
View Full Code Here

Examples of org.omg.CORBA.TypeCode.member_count()

    {
        Class<?> clazz = cl.loadClass("test.ValueTestHelper");
        Method method = clazz.getMethod("type", new Class[0]);
        TypeCode result = (TypeCode) method.invoke(null, new Object[0]);

        assertEquals(2, result.member_count());
        assertEquals("member1", result.member_name(0));
        assertEquals("member2", result.member_name(1));
    }

    public void verify_typedefstring_idl(ClassLoader cl) throws Exception
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.