20 namespace Lucene.Net.Search
39 set { this.occur = value; }
47 get {
return _query; }
48 set { this._query = value; }
51 public virtual bool IsProhibited
56 public virtual bool IsRequired
58 get {
return Occur.MUST.Equals(occur); }
63 public override bool Equals(System.Object o)
72 public override int GetHashCode()
78 public override System.String ToString()
80 return OccurExtensions.ToString(occur) +
Query;
91 public static class OccurExtensions
93 public static System.String ToString(
this Occur occur)
95 if (occur ==
Occur.MUST)
97 if (occur ==
Occur.MUST_NOT)