Class AbstractFragmentSetter<T extends AbstractFragmentSetter<T>>

java.lang.Object
io.aiven.kafka.connect.common.config.AbstractFragmentSetter<T>
Type Parameters:
T - the concrete class.
Direct Known Subclasses:
CommonConfigFragment.Setter, FileNameFragment.Setter, KafkaFragment.Setter, OutputFormatFragment.Setter, SourceConfigFragment.Setter, TransformerFragment.Setter

public class AbstractFragmentSetter<T extends AbstractFragmentSetter<T>> extends Object
An abstract class that is the bases for programmatic configuration easier.
  • Field Details

    • self

      protected T extends AbstractFragmentSetter<T> self
      A value to return from the setter methods. Support a fluent setter class.
  • Constructor Details

    • AbstractFragmentSetter

      protected AbstractFragmentSetter(Map<String,String> data)
      Constructor.
      Parameters:
      data - the map of data items being set.
  • Method Details

    • data

      public final Map<String,String> data()
      Gets the data map.
      Returns:
      the data map.
    • setValue

      protected final T setValue(String key, String value)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      value - the value to set.
      Returns:
      this.
    • setValue

      protected final T setValue(String key, int value)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      value - the value to set.
      Returns:
      this.
    • setValue

      protected final T setValue(String key, long value)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      value - the value to set.
      Returns:
      this.
    • setValue

      protected final T setValue(String key, Class<?> value)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      value - the value to set.
      Returns:
      this.
    • setValue

      protected final T setValue(String key, URI value)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      value - the value to set.
      Returns:
      this.
    • setValue

      protected final T setValue(String key, boolean state)
      Sets the value.
      Parameters:
      key - the key to set the value for.
      state - the value to set.
      Returns:
      this.