Lucene.Net.Search.TestThreadSafe.ValidateField C# (CSharp) Method

ValidateField() private method

private ValidateField ( IFieldable f ) : void
f IFieldable
return void
		internal virtual void  ValidateField(IFieldable f)
		{
			System.String val = f.StringValue;
			if (!val.StartsWith("^") || !val.EndsWith("$"))
			{
				throw new System.SystemException("Invalid field:" + f.ToString() + " val=" + val);
			}
		}