Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IAttributeReflector

    This interface is used to reflect contents of AttributeSource or Attribute.

    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public interface IAttributeReflector

    Methods

    Reflect(Type, string, object)

    This method gets called for every property in an Attribute/AttributeSource passing the Type of the IAttribute, a key and the actual value. E.g., an invocation of ReflectWith(IAttributeReflector) would call this method once using typeof(ICharTermAttribute) as attribute type, "term" as key and the actual value as a string.

    Declaration
    void Reflect(Type type, string key, object value)
    Parameters
    Type Name Description
    Type type
    string key
    object value

    Reflect<T>(string, object)

    LUCENENET specific overload to support generics.

    Declaration
    void Reflect<T>(string key, object value) where T : IAttribute
    Parameters
    Type Name Description
    string key
    object value
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.