/// <summary>
 /// Translate a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>UserDefinedValue</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override bool Translate(BatchSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }
 /// <summary>
 /// Translate a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(BatchSegment segment)
 {
     return(string.Empty);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handle a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(BatchSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Handle a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public override void Handle(BatchSegment segment)
 {
     CommonHandler(segment);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Translate a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(BatchSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Determine the NavigationSource of a BatchSegment
 /// </summary>
 /// <param name="segment">The BatchSegment to look in.</param>
 /// <returns>null, since $batch doesn't have an navigation source</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmNavigationSource Translate(BatchSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(null);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Translate a BatchSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(BatchSegment segment)
 {
     Debug.Assert(segment != null, "segment != null");
     return("/" + segment.Identifier);
 }