Fork me on GitHub
  • API

    Class AttributeFactory

    An AttributeFactory creates instances of Attributes.

    Inheritance
    object
    AttributeFactory
    Token.TokenAttributeFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class AttributeFactory
    Remarks

    LUCENENET NOTE: This class was the nested AttributeSource.AttributeFactory static class in Lucene.

    Fields

    DEFAULT_ATTRIBUTE_FACTORY

    This is the default factory that creates Attributes using the Type of the supplied IAttribute interface by removing the

    I
    from the prefix.
    Declaration
    public static readonly AttributeFactory DEFAULT_ATTRIBUTE_FACTORY
    Field Value
    Type Description
    AttributeFactory
    Remarks

    LUCENENET NOTE: This class was the nested AttributeSource.AttributeFactory static class in Lucene.

    Methods

    CreateAttributeInstance<T>()

    returns an Attribute for the supplied IAttribute interface.

    Declaration
    public abstract Attribute CreateAttributeInstance<T>() where T : IAttribute
    Returns
    Type Description
    Attribute
    Type Parameters
    Name Description
    T
    Remarks

    LUCENENET NOTE: This class was the nested AttributeSource.AttributeFactory static class in Lucene.

    Back to top Copyright © 2025 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.