/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }