Examples of insert_string()


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

         // Get codebase string from CodebasePolicy
         String codebase = codebasePolicy.getCodebase();
        
         // Encapsulate codebase string into TaggedComponent
         Any any = ORB.init().create_any();
         any.insert_string(codebase);
         byte[] taggedComponentData;
         try {
            taggedComponentData = codec.encode_value(any);
         }
         catch (InvalidTypeForEncoding e) {
View Full Code Here

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

    if (stringRef != null)
    {
        Any data = ORBManager.getORB().orb().create_any();

        data.insert_string(stringRef);
     
        byte[] octets = _codec.encode_value(data);
        ServiceContext service_context = new ServiceContext(OTSManager.serviceId, octets);

        request_info.add_request_service_context(service_context, true);
View Full Code Here

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

    if (stringRef != null)
    {
        Any data = ORBManager.getORB().orb().create_any();

        data.insert_string(stringRef);
     
        byte[] octets = _codec.encode_value(data);
        ServiceContext service_context = new ServiceContext(OTSManager.serviceId, octets);

        request_info.add_request_service_context(service_context, true);
View Full Code Here

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

    if (stringRef != null)
    {
        Any data = ORBManager.getORB().orb().create_any();

        data.insert_string(stringRef);

        byte[] octets = _codec.encode_value(data);
        ServiceContext service_context = new ServiceContext(OTSManager.serviceId, octets);

        request_info.add_request_service_context(service_context, true);
View Full Code Here

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

            Any numAny = orb.create_any();
            numAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
            params.add_value( "", numAny,org.omg.CORBA.ARG_IN.value );
            request.arguments( params );
            Any a = orb.create_any();
            a.insert_string( delegate.writeNumber( numAny.extract_long() ));
            request.set_result( a );
        }
        else if( op.equals("add") )
        {
            org.omg.CORBA.NVList params = orb.create_list(0);
View Full Code Here

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

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.name());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

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

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.id());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

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

    public Any toAny(String s)
    {
        Any _any = getORB().create_any();

        _any.insert_string(s);

        return _any;
    }

    public Any toAny(int i)
View Full Code Here

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

    {
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_wstring("foo");

        Any inAny = setup.getClientOrb().create_any();
        inAny.insert_string("bar");

        assertFalse(outAny.equal(inAny));
    }

    public void test_short_disc_union()
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_string()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_string ("foobar");
      assertEquals (msg, "foobar", dynAny.get_string());
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
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.