コード例 #1
0
 /// <summary>
 /// for a docsenum, gets the 'other' reused enum.
 /// Example: Pulsing(Standard).
 /// when doing a term range query you are switching back and forth
 /// between Pulsing and Standard
 ///  
 /// The way the reuse works is that Pulsing.other = Standard and
 /// Standard.other = Pulsing.
 /// </summary>
 private DocsEnum GetOther(DocsEnum de)
 {
     if (de == null)
     {
         return null;
     }
     else
     {
         AttributeSource atts = de.Attributes();
         return atts.AddAttribute(PulsingEnumAttribute.Enums().get(this);
     }
 }
コード例 #2
0
 /// <summary>
 /// for a docsenum, sets the 'other' reused enum.
 /// see GetOther for an example.
 /// </summary>
 private DocsEnum SetOther(DocsEnum de, DocsEnum other)
 {
     AttributeSource atts = de.Attributes();
     return atts.AddAttribute(PulsingEnumAttributeImpl.Enums().put(this, other));
 }
コード例 #3
0
 public override AttributeSource Attributes()
 {
     return(@in.Attributes());
 }