Package org.omg.CORBA

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


  {
      String threadId = null;

      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        //        ControlWrapper ctx = OTSImpleManager.systemCurrent().contextManager().popAction(threadId);
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
   
        //        OTSImpleManager.systemCurrent().contextManager().purgeActions(threadId);
View Full Code Here


  {
      String threadId = null;

      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
   
        OTSImpleManager.current().contextManager().purgeActions(threadId);
    }
View Full Code Here

  {
      String threadId = null;
     
      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);

        OTSImpleManager.current().contextManager().purgeActions(threadId);
       
View Full Code Here

     * on it already. If so, use it.
     */

    if ( (localData != null) && (localData.type().kind().value() != TCKind._tk_null) )
    {
        if ( (threadId = localData.extract_string()) == null )
      throw new UNKNOWN(jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.jacorb.interceptors.context.invalidparam"));
    }
    else
        threadId = ThreadUtil.getThreadId() ;

View Full Code Here

     * on it already. If so, use it.
     */

    if ( (localData != null) && (localData.type().kind().value() != TCKind._tk_null) )
    {
        if ( (threadId = localData.extract_string()) == null )
      throw new UNKNOWN(jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.jacorb.interceptors.context.invalidparam"));
    }
    else
        threadId = ThreadUtil.getThreadId() ;

View Full Code Here

  {
      String threadId = null;

      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);

        OTSImpleManager.current().contextManager().purgeActions(threadId);
    }
View Full Code Here

            org.omg.CORBA.NVList params = orb.create_list(0);
            Any stringAny = orb.create_any();
            stringAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
            params.add_value( "", stringAny, org.omg.CORBA.ARG_IN.value );
            request.arguments( params );
            delegate._notify( stringAny.extract_string() );
            Any s = orb.create_any();
            s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_void ));
            request.set_result( s );
        }
        else if( op.equals("_non_existent") )
View Full Code Here

        Any any1 = setup.getClientOrb().create_any();
        any1.insert_string("foobar");
        Any any2 = setup.getClientOrb().create_any();
        ((org.jacorb.orb.Any)any2).insert_object(any1.type(),
                                                 any1.extract_string());
        assertTrue (any1.extract_string() == any2.extract_string());
    }

    public void testEquals() throws Exception
    {
        Any any1 = setup.getClientOrb().create_any();
View Full Code Here

        {
            Current current = (Current)orb.resolve_initial_references("PICurrent");

            Any anyName = current.get_slot( IPInitializer.slotID );

            result = anyName.extract_string();
         }
         catch (InvalidSlot e)
         {
             throw new INTERNAL(e.toString());
         }
View Full Code Here

        _any.insert_long(10);
        Property p = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertyHelper.insert(_testData, p);
        Any a = objectUnderTest_.evaluateIdentifier(_testData, "name");
        assertEquals("number", a.extract_string());
    }


    public void testEvaluateNamedValueList() throws Exception {
        Any _any = getORB().create_any();
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.