Visitor class to represent Spring.Context.IMessageSourceResolvable instances.

Used in the first instance to supply stringified versions of Spring.Context.IMessageSourceResolvable instances.

Other methods can be added here to return different representations, including XML, CSV, etc..

コード例 #1
0
		/// <summary>
		/// Calls the visit method on the supplied <paramref name="visitor"/>
		/// to output a <see cref="System.String"/> version of this class.
		/// </summary>
		/// <param name="visitor">The visitor to use.</param>
		/// <returns>
		/// A <see cref="System.String"/> representation of this
		/// <see cref="Spring.Context.IMessageSourceResolvable"/>.
		/// </returns>
		public string Accept(MessageSourceResolvableVisitor visitor)
		{
			return visitor.VisitMessageSourceResolvableString(this);
		}
コード例 #2
0
 /// <summary>
 /// Calls the visit method on the supplied <paramref name="visitor"/>
 /// to output a <see cref="System.String"/> version of this class.
 /// </summary>
 /// <param name="visitor">The visitor to use.</param>
 /// <returns>
 /// A <see cref="System.String"/> representation of this
 /// <see cref="Spring.Context.IMessageSourceResolvable"/>.
 /// </returns>
 public string Accept(MessageSourceResolvableVisitor visitor)
 {
     return(visitor.VisitMessageSourceResolvableString(this));
 }