Examples of toStructuredEvent()


Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        switch (_event.getType()) {
        case Message.TYPE_ANY:
            _result = expandedPath_.evaluate(context);
            break;
        case Message.TYPE_STRUCTURED:
            String _domainName = _event.toStructuredEvent().header.fixed_header.event_type.domain_name;
            _result = new EvaluationResult();
            _result.setString(_domainName);
            break;
        default:
            throw new RuntimeException();
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

            case Message.TYPE_ANY:
                _result = expandedPath_.evaluate(context);
                break;

            case Message.TYPE_STRUCTURED:
                String _domainName = _event.toStructuredEvent().header.fixed_header.event_name;
                _result = new EvaluationResult();
                _result.setString(_domainName);
                break;

            default:
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

                _result = expandedPath_.evaluate( context );
                break;

            case Message.TYPE_STRUCTURED:
                String _domainName =
                    _event.toStructuredEvent().header.fixed_header.event_type.type_name;

                _result = new EvaluationResult();
                _result.setString( _domainName );
                break;
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        {
            Message _message = getMessageBlocking();

            try
            {
                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        } catch (InterruptedException e)
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        {
            try
            {
                hasEvent.value = true;

                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        }
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

            case Message.TYPE_ANY:
                _result = expandedPath_.evaluate(context);
                break;

            case Message.TYPE_STRUCTURED:
                String _domainName = _event.toStructuredEvent().header.fixed_header.event_name;
                _result = new EvaluationResult();
                _result.setString(_domainName);
                break;

            default:
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        {
            Message _message = getMessageBlocking();

            try
            {
                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        } catch (InterruptedException e)
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        {
            try
            {
                hasEvent.value = true;

                return _message.toStructuredEvent();
            } finally
            {
                _message.dispose();
            }
        }
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

        assertEquals("TESTING", _result.getString());
    }

    public void testToStructuredEvent() throws Exception {
        Message _event = factory_.newMessage(testPerson_);
        StructuredEvent _structuredEvent = _event.toStructuredEvent();

        assertEquals("", _structuredEvent.header.fixed_header.event_type.domain_name);
        assertEquals("%ANY", _structuredEvent.header.fixed_header.event_type.type_name);

        Person _p = PersonHelper.extract(_structuredEvent.remainder_of_body);
View Full Code Here

Examples of org.jacorb.notification.interfaces.Message.toStructuredEvent()

    public void testStructuredToStructured() throws Exception
    {
        Message _notifyEvent = messageFactory_.newMessage(testStructured_);
        assertNotNull(_notifyEvent);
        StructuredEvent _event = _notifyEvent.toStructuredEvent();
        assertNotNull(_event);
        assertEquals("domain", _event.header.fixed_header.event_type.domain_name);
        assertEquals("type", _event.header.fixed_header.event_type.type_name);
    }
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.