Exemple #1
0
 public void WalkWith(PathSegmentHandler handler)
 {
     foreach (ODataPathSegment segment in this.segments)
     {
         segment.HandleWith(handler);
     }
 }
        public override void HandleWith(PathSegmentHandler handler)
        {
            ODataPathSegmentHandler pathSegmentHandler = handler as ODataPathSegmentHandler;

            if (pathSegmentHandler != null)
            {
                pathSegmentHandler.Handle(this);
            }
        }
 /// <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 HandleWith(PathSegmentHandler handler)
 {
     ExceptionUtils.CheckArgumentNotNull(handler, "handler");
     handler.Handle(this);
 }
Exemple #4
0
 /// <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 HandleWith(PathSegmentHandler handler);
Exemple #5
0
 public override void HandleWith(PathSegmentHandler handler)
 {
     throw new System.NotImplementedException();
 }
Exemple #6
0
 /// <summary>
 /// Handle a <see cref="UnresolvedPathSegment" /> an implementation of <see cref="PathSegmentHandler" />
 /// </summary>
 /// <param name="handler">An implementation of the handler interface.</param>
 public override void HandleWith(PathSegmentHandler handler)
 {
 }