org.hibernate.search.elasticsearch.settings.impl.translation

## Class AbstractSynonymsParameterValueTransformer

- java.lang.Object
- - org.hibernate.search.elasticsearch.settings.impl.translation.AbstractSynonymsParameterValueTransformer

- All Implemented Interfaces:
    ParameterValueTransformer
  Direct Known Subclasses:
    SolrSynonymsParameterValueTransformer, WordnetSynonymsParameterValueTransformer

      public class AbstractSynonymsParameterValueTransformer
      extends Object

  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractSynonymsParameterValueTransformer(ResourceLoader resourceLoader)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `extractContent(String line)` Extract the content from a line.
    `protected List<String>` | `getLines(InputStream stream)`
    `String` | `toString()`
    `com.google.gson.JsonElement` | `transform(String parameterValue)`

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

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

- - ### Constructor Detail

    - #### AbstractSynonymsParameterValueTransformer

          public AbstractSynonymsParameterValueTransformer(ResourceLoader resourceLoader)

  - ### Method Detail

    - #### getLines

          protected List<String> getLines(InputStream stream)
                                   throws IOException

      Throws:
        `IOException`

    - #### extractContent

          protected String extractContent(String line)

      Extract the content from a line.

      This method basically strips non-meaningful content, like comments, from a line.

      Parameters:
        `line` - The line to extract content from
      Returns:
        The content, or null if there is none.

    - #### transform

          public com.google.gson.JsonElement transform(String parameterValue)

      Specified by:
        `transform` in interface `ParameterValueTransformer`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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