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); }
public virtual void Accept(MessageVisitor visitor) { Interaction interaction = GetInteraction(this.message); if (interaction != null) { Walk(interaction, visitor); } else { visitor.VisitRoot(this.message.DocumentElement, null); } }