public void WalkWith(PathSegmentHandler handler) { foreach (ODataPathSegment segment in this.segments) { segment.Handle(handler); } }
/// <summary> /// Handle a <see cref="ValueSegment"/> using an instance of <see cref="PathSegmentHandler"/>. /// </summary> /// <param name="handler">An implementation of the translator interface.</param> /// <exception cref="System.ArgumentNullException">Throws if the input handler is null.</exception> public override void Handle(PathSegmentHandler handler) { ExceptionUtils.CheckArgumentNotNull(handler, "translator"); handler.Handle(this); }
/// <summary> /// Handle a <see cref="ODataPathSegment"/> using an implementation of a <see cref="PathSegmentHandler"/>. /// </summary> /// <param name="handler">An implementation of the handler interface.</param> public abstract void Handle(PathSegmentHandler handler);