Package org.omg.CORBA.portable

Examples of org.omg.CORBA.portable.BoxedValueHelper


        }
    }

    private BoxedValueHelper getHelper(java.io.Serializable value,
            org.omg.CORBA.TypeCode type) {
        BoxedValueHelper result = null;

        Class helperClass = null;

        //
        // First try constructing a class name based on the class of
View Full Code Here


            // in use is CORBA::ValueBase. We know we've been given a
            // valuebox when the value does not implement StreamableValue
            // or CustomMarshal.
            //
            if (!isStreamable && !isCustom) {
                BoxedValueHelper helper = getHelper (value, null);
                if (helper == null) {
                    writeRMIValue (value, id);
                } else {
                    writeValueBox (value, null, helper);
                }
View Full Code Here

     * to repId.
     */

    public BoxedValueHelper getBoxedValueHelper(String repId)
    {
        BoxedValueHelper result = (BoxedValueHelper)boxedValueHelpers.get(repId);
        if (result == null)
        {
            if (boxedValueHelpers.containsKey(repId))
            {
                return null;
View Full Code Here

        }
    }

    private BoxedValueHelper getHelper(java.io.Serializable value,
            org.omg.CORBA.TypeCode type) {
        BoxedValueHelper result = null;

        Class helperClass = null;

        //
        // First try constructing a class name based on the class of
View Full Code Here

            // in use is CORBA::ValueBase. We know we've been given a
            // valuebox when the value does not implement StreamableValue
            // or CustomMarshal.
            //
            if (!isStreamable && !isCustom) {
                BoxedValueHelper helper = getHelper (value, null);
                if (helper == null) {
                    writeRMIValue (value, id);
                } else {
                    writeValueBox (value, null, helper);
                }
View Full Code Here

        } else if (object instanceof CustomValue) {
            ((CustomValue)object).marshal(parent);

        } else {
            BoxedValueHelper helper = Utility.getHelper(object.getClass(), null, repID);
            boolean isCustom = false;
            if (helper instanceof ValueHelper && object instanceof CustomMarshal) {
                try {
                    if (((ValueHelper)helper).get_type().type_modifier() == VM_CUSTOM.value)
                        isCustom = true;
                } catch(BadKind ex) {
                    throw wrapper.badTypecodeForCustomValue( CompletionStatus.COMPLETED_MAYBE,
                        ex ) ;
                }
            }
            if (isCustom)
                ((CustomMarshal)object).marshal(parent);
            else
                helper.write_value(parent, object);
        }
    }
View Full Code Here

            // Could not get a factory, so try alternatives
            if (!StreamableValue.class.isAssignableFrom(clazz) &&
                !CustomValue.class.isAssignableFrom(clazz) &&
                ValueBase.class.isAssignableFrom(clazz)) {
                // use old-style OBV support (helper object)
                BoxedValueHelper helper = Utility.getHelper(clazz, codebase, repId);
                if (helper instanceof ValueHelper)
                    return readIDLValueWithHelper((ValueHelper)helper, indirection);
                else
                    return helper.read_value(parent);
            } else {
                // must be a boxed IDLEntity, so make a reflective call to the
                // helper's static read method...
                return readBoxedIDLEntity(clazz, codebase);
            }
View Full Code Here

        } else if (object instanceof CustomValue) {
            ((CustomValue)object).marshal(parent);

        } else {
            BoxedValueHelper helper = Utility.getHelper(object.getClass(), null, repID);
            boolean isCustom = false;
            if (helper instanceof ValueHelper && object instanceof CustomMarshal) {
                try {
                    if (((ValueHelper)helper).get_type().type_modifier() == VM_CUSTOM.value)
                        isCustom = true;
                } catch(BadKind ex) {
                    throw wrapper.badTypecodeForCustomValue( CompletionStatus.COMPLETED_MAYBE,
                        ex ) ;
                }
            }
            if (isCustom)
                ((CustomMarshal)object).marshal(parent);
            else
                helper.write_value(parent, object);
        }
    }
View Full Code Here

            // Could not get a factory, so try alternatives
            if (!StreamableValue.class.isAssignableFrom(clazz) &&
                !CustomValue.class.isAssignableFrom(clazz) &&
                ValueBase.class.isAssignableFrom(clazz)) {
                // use old-style OBV support (helper object)
                BoxedValueHelper helper = Utility.getHelper(clazz, codebase, repId);
                if (helper instanceof ValueHelper)
                    return readIDLValueWithHelper((ValueHelper)helper, indirection);
                else
                    return helper.read_value(parent);
            } else {
                // must be a boxed IDLEntity, so make a reflective call to the
                // helper's static read method...
                return readBoxedIDLEntity(clazz, codebase);
            }
View Full Code Here

     * to repId.
     */

    public BoxedValueHelper getBoxedValueHelper(String repId)
    {
        BoxedValueHelper result = (BoxedValueHelper)boxedValueHelpers.get(repId);
        if (result == null)
        {
            if (boxedValueHelpers.containsKey(repId))
                return null;
            else
View Full Code Here

TOP

Related Classes of org.omg.CORBA.portable.BoxedValueHelper

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.