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