Package org.omg.CORBA

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


    }

    private Object newVarLengthStruct(ClassLoader cl, String m1, boolean alarmMonitoringIndicator, String name, String value, String[] m1Seq) throws Exception
    {
        Any any = org.omg.CORBA.ORB.init().create_any();
        any.insert_short ((short)10);

        Class nameValueClazz = cl.loadClass("org.jacorb.test.bugs.bugjac149.NameAndStringValue_T");
        Constructor nameValueCTOR = nameValueClazz.getConstructor(new Class[] {String.class, String.class});
        Object nameValue = nameValueCTOR.newInstance(new Object[] {name, value});
View Full Code Here


    {
        Any _lowVal = getORB().create_any();
        Any _highVal = getORB().create_any();

        _lowVal.insert_short(BestEffort.value);
        _highVal.insert_short(BestEffort.value);

        UnsupportedQoS _e = new UnsupportedQoS(new PropertyError[] { new PropertyError(
                QoSError_code.UNSUPPORTED_VALUE, property, new PropertyRange(_lowVal, _highVal)) });

        throw _e;
View Full Code Here

    {
        Any _lowVal = getORB().create_any();
        Any _highVal = getORB().create_any();

        _lowVal.insert_short(BestEffort.value);
        _highVal.insert_short(BestEffort.value);

        UnsupportedQoS _e = new UnsupportedQoS("The specified Property Value is not supported",
                new PropertyError[] { new PropertyError(QoSError_code.BAD_VALUE, property,
                        new PropertyRange(_lowVal, _highVal)) });
        throw _e;
View Full Code Here

    public void test_short()
        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_short(testValue);
        assertEquals(testValue, outAny.extract_short());

        Any inAny = server.bounce_any(outAny);

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

    protected void setServerPolicy() throws PolicyError
    {
        // create a sync scope policy
        Any syncPolicyAny = orb.create_any();
        syncPolicyAny.insert_short( SYNC_WITH_SERVER.value );

        Policy syncPolicy =
            orb.create_policy
                ( SYNC_SCOPE_POLICY_TYPE.value, syncPolicyAny  );
View Full Code Here

        for (int x = 0; x < events.length; ++x)
        {
            events[x] = new NotificationTestUtils(getClientORB()).getStructuredEvent();

            Any priority = getClientORB().create_any();
            priority.insert_short((short) x);

            events[x].header.variable_header = new Property[] { new Property(Priority.value,
                    priority) };

        }
View Full Code Here

    {
        Any _lowVal = getORB().create_any();
        Any _highVal = getORB().create_any();

        _lowVal.insert_short(BestEffort.value);
        _highVal.insert_short(BestEffort.value);

        UnsupportedQoS _e = new UnsupportedQoS(new PropertyError[] { new PropertyError(
                QoSError_code.UNSUPPORTED_VALUE, property, new PropertyRange(_lowVal, _highVal)) });

        throw _e;
View Full Code Here

    {
        Any _lowVal = getORB().create_any();
        Any _highVal = getORB().create_any();

        _lowVal.insert_short(BestEffort.value);
        _highVal.insert_short(BestEffort.value);

        UnsupportedQoS _e = new UnsupportedQoS("The specified Property Value is not supported",
                new PropertyError[] { new PropertyError(QoSError_code.BAD_VALUE, property,
                        new PropertyRange(_lowVal, _highVal)) });
        throw _e;
View Full Code Here

/*    */   public void establish_components(IORInfo info)
/*    */   {
/*    */     try
/*    */     {
/* 73 */       Any any = ORB.init().create_any();
/* 74 */       any.insert_short(0);
/* 75 */       byte[] taggedComponentData = this.codec.encode_value(any);
/* 76 */       info.add_ior_component(new TaggedComponent(32, taggedComponentData));
/*    */
/* 78 */       any = ORB.init().create_any();
/* 79 */       any.insert_short(3);
View Full Code Here

/* 74 */       any.insert_short(0);
/* 75 */       byte[] taggedComponentData = this.codec.encode_value(any);
/* 76 */       info.add_ior_component(new TaggedComponent(32, taggedComponentData));
/*    */
/* 78 */       any = ORB.init().create_any();
/* 79 */       any.insert_short(3);
/* 80 */       taggedComponentData = this.codec.encode_value(any);
/* 81 */       info.add_ior_component(new TaggedComponent(31, taggedComponentData));
/*    */     }
/*    */     catch (InvalidTypeForEncoding 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.