Package org.omg.CORBA.TypeCodePackage

Examples of org.omg.CORBA.TypeCodePackage.BadKind


                return _memberAccess[index];
            } catch (ArrayIndexOutOfBoundsException e) {
                throw new org.omg.CORBA.TypeCodePackage.Bounds();
            }
        default:
            throw new BadKind();
        }
    }
View Full Code Here


        case tk_indirect:
            return indirectType().type_modifier();
        case TCKind._tk_value:
            return _type_modifier;
        default:
            throw new BadKind();
        }
    }
View Full Code Here

        case tk_indirect:
            return indirectType().concrete_base_type();
        case TCKind._tk_value:
            return _concrete_base;
        default:
            throw new BadKind();
        }
    }
View Full Code Here

    // Only for union type. Returns the index of the union member
    // corresponding to the discriminator. If not found returns the
    // default index or -1 if there is no default index.
    int currentUnionMemberIndex(Any discriminatorValue) throws BadKind {
        if (_kind != TCKind._tk_union)
            throw new BadKind();

        try {
            for (int i=0; i<member_count(); i++) {
                if (member_label(i).equal(discriminatorValue)) {
                    return i;
View Full Code Here

            _name = (String)_names.get(new Integer(_kind.value()));
        }
        */
        if (_name == null)
        {
            throw new BadKind();
        }
        return _name;
    }
View Full Code Here

        {
            return _ref.member_count();
        }
        if (_member_name == null)
        {
            throw new BadKind();
        }
        return _member_name.length;
    }
View Full Code Here

        {
            return _ref.member_name(index);
        }
        if (_member_name == null)
        {
            throw new BadKind();
        }
        if (index < 0 || index >= _member_name.length)
        {
            throw new Bounds();
        }
View Full Code Here

        {
            return _ref.member_type(index);
        }
        if (_member_type == null)
        {
            throw new BadKind();
        }
        if (index < 0 || index >= _member_type.length)
        {
            throw new Bounds();
        }
View Full Code Here

        {
            return _ref.member_label(index);
        }
        if (_member_label == null)
        {
            throw new BadKind();
        }
        if (index < 0 || index >= _member_label.length)
        {
            throw new Bounds();
        }
View Full Code Here

            return _ref.discriminator_type();
        }
        if (_ref == null
            || _kind.value() != TCKind._tk_union)
        {
            throw new BadKind();
        }
        return _ref;
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.TypeCodePackage.BadKind

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.