Package org.apache.yoko.orb.CORBA

Examples of org.apache.yoko.orb.CORBA.Any


    public synchronized org.omg.CORBA.Any to_any() {
        if (destroyed_)
            throw new org.omg.CORBA.OBJECT_NOT_EXIST();

        if (is_null())
            return new Any(orbInstance_, type_, null);
        else {
            org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer();
            OutputStream out = new OutputStream(buf);
            out._OB_ORBInstance(orbInstance_);
            _OB_marshal(out);
            InputStream in = (InputStream) out.create_input_stream();
            return new Any(orbInstance_, type_, in);
        }
    }
View Full Code Here


            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        //
        // Convert value to an ORBacus Any - the JDK implementation
        // of TypeCode.equivalent() raises NO_IMPLEMENT
        //
        Any val = null;
        try {
            val = (Any) boxed;
        } catch (ClassCastException ex) {
            try {
                val = new Any(boxed);
            } catch (NullPointerException e) {
                throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
            }
        }

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

        boolean isNull = is_null();

        try {
View Full Code Here

            result = any.extract_ulonglong();
            break;

        case org.omg.CORBA.TCKind._tk_enum: {
            try {
                Any a = (Any) any;
                result = ((Integer) a.value()).longValue();
            } catch (ClassCastException ex) {
                result = any.create_input_stream().read_ulong();
            }
            break;
        }
View Full Code Here

    public abstract org.omg.DynamicAny.DynAny copy();

    public synchronized void insert_boolean(boolean value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_boolean);

        any.replace(any.type(), Boolean.valueOf(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_octet(byte value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_octet);

        any.replace(any.type(), new Byte(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_char(char value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_char);

        any.replace(any.type(), new Character(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_short(short value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_short);

        any.replace(any.type(), new Integer(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_ushort(short value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_ushort);

        any.replace(any.type(), new Integer(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_long(int value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_long);

        any.replace(any.type(), new Integer(value));

        notifyParent();
    }
View Full Code Here

    }

    public synchronized void insert_ulong(int value)
            throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
            org.omg.DynamicAny.DynAnyPackage.InvalidValue {
        Any any = _OB_currentAny();

        checkValue(any, org.omg.CORBA.TCKind.tk_ulong);

        any.replace(any.type(), new Integer(value));

        notifyParent();
    }
View Full Code Here

TOP

Related Classes of org.apache.yoko.orb.CORBA.Any

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.