コード例 #1
0
        private void Walk(Interaction interaction, MessageVisitor visitor)
        {
            XmlElement documentElement = this.message.DocumentElement;

            visitor.VisitRoot(documentElement, interaction);
            MessagePart messagePart = GetMessagePart(interaction.SuperTypeName);

            ProcessAllRelationships(documentElement, interaction, Arrays.AsList(messagePart), visitor);
        }
コード例 #2
0
        public virtual void Accept(MessageVisitor visitor)
        {
            Interaction interaction = GetInteraction(this.message);

            if (interaction != null)
            {
                Walk(interaction, visitor);
            }
            else
            {
                visitor.VisitRoot(this.message.DocumentElement, null);
            }
        }