org.hibernate.search.elasticsearch.analyzer.definition.impl

## Class ForwardingElasticsearchAnalysisDefinitionRegistry

- java.lang.Object
- - org.hibernate.search.elasticsearch.analyzer.definition.impl.ForwardingElasticsearchAnalysisDefinitionRegistry

- All Implemented Interfaces:
    ElasticsearchAnalysisDefinitionRegistry
  Direct Known Subclasses:
    ChainingElasticsearchAnalysisDefinitionRegistry, NamespaceMergingElasticsearchAnalysisDefinitionRegistry

      public class ForwardingElasticsearchAnalysisDefinitionRegistry
      extends Object
      implements ElasticsearchAnalysisDefinitionRegistry

  An `ElasticsearchAnalysisDefinitionRegistry` that delegate calls to another instance.
  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ForwardingElasticsearchAnalysisDefinitionRegistry(ElasticsearchAnalysisDefinitionRegistry delegate)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AnalyzerDefinition` | `getAnalyzerDefinition(String name)`
    `CharFilterDefinition` | `getCharFilterDefinition(String name)`
    `NormalizerDefinition` | `getNormalizerDefinition(String name)`
    `TokenFilterDefinition` | `getTokenFilterDefinition(String name)`
    `TokenizerDefinition` | `getTokenizerDefinition(String name)`
    `void` | `register(String name, AnalyzerDefinition definition)` Register an analyzer definition.
    `void` | `register(String name, CharFilterDefinition definition)` Register a char filter definition.
    `void` | `register(String name, NormalizerDefinition definition)` Register a normalizer definition.
    `void` | `register(String name, TokenFilterDefinition definition)` Register a token filter definition.
    `void` | `register(String name, TokenizerDefinition definition)` Register a tokenizer definition.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ForwardingElasticsearchAnalysisDefinitionRegistry

          public ForwardingElasticsearchAnalysisDefinitionRegistry(ElasticsearchAnalysisDefinitionRegistry delegate)

  - ### Method Detail

    - #### register

          public void register(String name,
                               AnalyzerDefinition definition)

      Description copied from interface: `ElasticsearchAnalysisDefinitionRegistry`
      Register an analyzer definition.
      Specified by:
        `register` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - The name of the definition to be registered.
        `definition` - The definition to be registered.

    - #### register

          public void register(String name,
                               NormalizerDefinition definition)

      Description copied from interface: `ElasticsearchAnalysisDefinitionRegistry`
      Register a normalizer definition.
      Specified by:
        `register` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - The name of the definition to be registered.
        `definition` - The definition to be registered.

    - #### register

          public void register(String name,
                               TokenizerDefinition definition)

      Description copied from interface: `ElasticsearchAnalysisDefinitionRegistry`
      Register a tokenizer definition.
      Specified by:
        `register` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - The name of the definition to be registered.
        `definition` - The definition to be registered.

    - #### register

          public void register(String name,
                               TokenFilterDefinition definition)

      Description copied from interface: `ElasticsearchAnalysisDefinitionRegistry`
      Register a token filter definition.
      Specified by:
        `register` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - The name of the definition to be registered.
        `definition` - The definition to be registered.

    - #### register

          public void register(String name,
                               CharFilterDefinition definition)

      Description copied from interface: `ElasticsearchAnalysisDefinitionRegistry`
      Register a char filter definition.
      Specified by:
        `register` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - The name of the definition to be registered.
        `definition` - The definition to be registered.

    - #### getAnalyzerDefinition

          public AnalyzerDefinition getAnalyzerDefinition(String name)

      Specified by:
        `getAnalyzerDefinition` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - An analyzer name
      Returns:
        The analyzer definition associated with the given name, or `null` if there isn't any.

    - #### getNormalizerDefinition

          public NormalizerDefinition getNormalizerDefinition(String name)

      Specified by:
        `getNormalizerDefinition` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - A normalizer name
      Returns:
        The normalizer definition associated with the given name, or `null` if there isn't any.

    - #### getTokenizerDefinition

          public TokenizerDefinition getTokenizerDefinition(String name)

      Specified by:
        `getTokenizerDefinition` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - A tokenizer name
      Returns:
        The tokenizer definition associated with the given name, or `null` if there isn't any.

    - #### getTokenFilterDefinition

          public TokenFilterDefinition getTokenFilterDefinition(String name)

      Specified by:
        `getTokenFilterDefinition` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - A token filter name
      Returns:
        The token filter definition associated with the given name, or `null` if there isn't any.

    - #### getCharFilterDefinition

          public CharFilterDefinition getCharFilterDefinition(String name)

      Specified by:
        `getCharFilterDefinition` in interface `ElasticsearchAnalysisDefinitionRegistry`
      Parameters:
        `name` - A char filter name
      Returns:
        The char filter definition associated with the given name, or `null` if there isn't any.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved