Package org.omg.CORBA

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


    //same typecode, divverent value
    public void test_equal()
        throws Exception
    {
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_string("foo");

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

        assertFalse(outAny.equal(inAny));
View Full Code Here


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

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

        assertFalse(outAny.equal(inAny));
    }

    //different typecode
View Full Code Here

        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this indicates success");

        EventType[] _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");
        ConstraintExp constraintExp = new ConstraintExp(_eventType, "$.first_name == 'firstname'");

View Full Code Here

        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this is 10");

        EventType[] _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");
        ConstraintExp constraintExp = new ConstraintExp(_eventType, "$ == 10");

View Full Code Here

        MappingConstraintPair[] mappingConstraintPair = new MappingConstraintPair[2];
        mappingConstraintPair[0] = new MappingConstraintPair(constraintExp, resultToSet);

        constraintExp = new ConstraintExp(_eventType, "$ == 20");
        resultToSet = getORB().create_any();
        resultToSet.insert_string("this is 20");
        mappingConstraintPair[1] = new MappingConstraintPair(constraintExp, resultToSet);

        MappingConstraintInfo[] _info = _mappingFilter
                .add_mapping_constraints(mappingConstraintPair);
View Full Code Here

    public void test_any()
        throws Exception
    {
        Any testValue = setup.getClientOrb().create_any();
        testValue.insert_string("foo");

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_any(testValue);
        assertEquals(testValue, outAny.extract_any());
View Full Code Here

    public void test_any_streamable()
        throws Exception
    {
        Any testValue = setup.getClientOrb().create_any();
        testValue.insert_string("foo");

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new AnyHolder(testValue));
        assertEquals(testValue, outAny.extract_any());
View Full Code Here

    public void test_string()
        throws Exception
    {
        String testValue = "foo";
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_string(testValue);
        assertEquals(testValue, outAny.extract_string());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_string());
View Full Code Here

/* 375 */     WebClassLoader wcl = (WebClassLoader)this.container.getWebClassLoader();
/*     */     String codebaseString;
/* 377 */     if ((wcl != null) && ((codebaseString = wcl.getCodebaseString()) != null))
/*     */     {
/* 379 */       Any codebase = this.orb.create_any();
/* 380 */       codebase.insert_string(codebaseString);
/* 381 */       this.codebasePolicy = this.orb.create_policy(305419896, codebase);
/* 382 */       this.logger.debug("codebasePolicy: " + this.codebasePolicy);
/*     */     }
/*     */     else
/*     */     {
View Full Code Here

/* 66 */     CodebasePolicy codebasePolicy = (CodebasePolicy)info.get_effective_policy(305419896);
/*    */
/* 69 */     if (codebasePolicy != null) { String codebase = codebasePolicy.getCodebase();
/*    */
/* 74 */       Any any = ORB.init().create_any();
/* 75 */       any.insert_string(codebase);
/*    */       byte[] taggedComponentData;
/*    */       try { taggedComponentData = this.codec.encode_value(any);
/*    */       } catch (InvalidTypeForEncoding e)
/*    */       {
/* 81 */         throw new RuntimeException("Exception establishing Java codebase component:" + e);
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.