/// <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); } }
/// <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)); }
public override AttributeSource Attributes() { return(@in.Attributes()); }