## Uses of Class
org.apache.lucene.util.AttributeFactory

- Packages that use AttributeFactory
  Package | Description
  --- | ---
  org.apache.lucene.analysis | Text analysis.
  org.apache.lucene.util | Some utility classes.

- - ### Uses of AttributeFactory in org.apache.lucene.analysis

    Fields in org.apache.lucene.analysis declared as AttributeFactory
    Modifier and Type | Field and Description
    --- | ---
    `static AttributeFactory` | TokenStream.`DEFAULT_TOKEN_ATTRIBUTE_FACTORY` Default `AttributeFactory` instance that should be used for TokenStreams.
    `static AttributeFactory` | Token.`TOKEN_ATTRIBUTE_FACTORY` Deprecated. Convenience factory that returns `Token` as implementation for the basic attributes and return the default impl (with "Impl" appended) for all other attributes.

    Constructors in org.apache.lucene.analysis with parameters of type AttributeFactory
    Constructor and Description
    `NumericTokenStream(AttributeFactory factory, int precisionStep)` Expert: Creates a token stream for numeric values with the specified `precisionStep` using the given `AttributeFactory`.
    `Tokenizer(AttributeFactory factory)` Construct a tokenizer with no input, awaiting a call to `Tokenizer.setReader(java.io.Reader)` to provide input.
    `TokenStream(AttributeFactory factory)` A TokenStream using the supplied AttributeFactory for creating new `Attribute` instances.

  - ### Uses of AttributeFactory in org.apache.lucene.util

    Subclasses of AttributeFactory in org.apache.lucene.util
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>` Expert: AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Fields in org.apache.lucene.util declared as AttributeFactory
    Modifier and Type | Field and Description
    --- | ---
    `static AttributeFactory` | AttributeFactory.`DEFAULT_ATTRIBUTE_FACTORY` This is the default factory that creates `AttributeImpl`s using the class name of the supplied `Attribute` interface class by appending `Impl` to it.

    Methods in org.apache.lucene.util that return AttributeFactory
    Modifier and Type | Method and Description
    --- | ---
    `AttributeFactory` | AttributeSource.`getAttributeFactory()` returns the used AttributeFactory.
    `static <A extends AttributeImpl> AttributeFactory` | AttributeFactory.`getStaticImplementation(AttributeFactory delegate, Class<A> clazz)` Returns an AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Methods in org.apache.lucene.util with parameters of type AttributeFactory
    Modifier and Type | Method and Description
    --- | ---
    `static <A extends AttributeImpl> AttributeFactory` | AttributeFactory.`getStaticImplementation(AttributeFactory delegate, Class<A> clazz)` Returns an AttributeFactory returning an instance of the given `clazz` for the attributes it implements.

    Constructors in org.apache.lucene.util with parameters of type AttributeFactory
    Constructor and Description
    `AttributeFactory.StaticImplementationAttributeFactory(AttributeFactory delegate, Class<A> clazz)` Expert: Creates an AttributeFactory returning `clazz` as instance for the attributes it implements and for all other attributes calls the given delegate factory.
    `AttributeSource(AttributeFactory factory)` An AttributeSource using the supplied `AttributeFactory` for creating new `Attribute` instances.

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.