/// <summary>
 /// Translate a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(PathTemplateSegment segment)
 {
     return("/" + segment.Identifier);
 }
示例#2
0
 /// <summary>
 /// Handle a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(PathTemplateSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Translate a PathTemplateSegment
 /// </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(PathTemplateSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(!segment.SingleResult);
 }
 /// <summary>
 /// Handle a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public override void Handle(PathTemplateSegment segment)
 {
     CommonHandler(segment);
 }
示例#5
0
 /// <summary>
 /// Translate a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(PathTemplateSegment segment)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Determine the NavigationSource of a PathTemplateSegment
 /// </summary>
 /// <param name="segment">The PathTemplateSegment 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(PathTemplateSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(null);
 }
示例#7
0
 /// <summary>
 /// Translate a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(PathTemplateSegment segment)
 {
     Debug.Assert(segment != null, "segment != null");
     return(segment.LiteralText);
 }
示例#8
0
 /// <summary>
 /// Translate a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(PathTemplateSegment segment)
 {
     Debug.Assert(segment != null, "segment != null");
     return("/" + segment.Identifier);
 }