Class FieldConfigs.Config

java.lang.Object
org.codelibs.fess.crawler.util.FieldConfigs.Config
Enclosing class:
FieldConfigs

public static class FieldConfigs.Config extends Object
Configuration class that holds parsed configuration values for a field. This class parses pipe-separated configuration values and provides methods to check for specific configuration options.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Config(String value)
    Constructs a new Config instance by parsing the provided configuration value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the array of parsed configuration values.
    boolean
    Checks if the cache option is enabled in the configuration.
    boolean
    Checks if the overwrite option is enabled in the configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Config

      public Config(String value)
      Constructs a new Config instance by parsing the provided configuration value. The value is split by pipe character (|) and each part is trimmed.
      Parameters:
      value - the configuration value string to parse
  • Method Details

    • isCache

      public boolean isCache()
      Checks if the cache option is enabled in the configuration. Returns true if "cache" is present in the values or if there's a single "true" value for backward compatibility.
      Returns:
      true if caching is enabled, false otherwise
    • isOverwrite

      public boolean isOverwrite()
      Checks if the overwrite option is enabled in the configuration. Returns true if "overwrite" is present in the values.
      Returns:
      true if overwriting is enabled, false otherwise
    • getValues

      public String[] getValues()
      Returns the array of parsed configuration values.
      Returns:
      the array of configuration values