/// <summary> /// Applies the required string property condition in the condition part of the query. /// </summary> /// <param name="value">The expected value for the condition.</param> /// <param name="matcher">The matcher to use to check the condition.</param> /// <returns>THe operator part of the query.</returns> private QueryOperatorPart ApplyMatcher(string value, Matcher <string> matcher) { if (!(Query.Engine is TreeWalkerSearchEngine)) { throw new QueryConstructionException("Cannot apply matcher - Search engine is not a TreeWalker"); } ConditionPart.ApplyCondition(new StringPropertyCondition(Property, value, matcher)); return(new QueryOperatorPart(ConditionPart)); }
/// <summary> /// Applies the required property condition in the condition part of the query. /// </summary> /// <param name="value">The expected value for the condition.</param> /// <returns>THe operator part of the query.</returns> private QueryOperatorPart ApplyMatcher(object value) { ConditionPart.ApplyCondition(new PropertyCondition(Property, value)); return(new QueryOperatorPart(ConditionPart)); }