/// <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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handle a PathTemplateSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(PathTemplateSegment segment)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }