Class AbstractParameterizable

  • All Implemented Interfaces:
    Parameterizable

    public abstract class AbstractParameterizable
    extends java.lang.Object
    implements Parameterizable
    This abstract class provides boilerplate parameters list.
    Since:
    3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Collection<java.lang.String> parametersNames
      List of the parameters names.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractParameterizable​(java.lang.String... names)
      Simple constructor.
      protected AbstractParameterizable​(java.util.Collection<java.lang.String> names)
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void complainIfNotSupported​(java.lang.String name)
      Check if a parameter is supported and throw an IllegalArgumentException if not.
      java.util.Collection<java.lang.String> getParametersNames()
      Get the names of the supported parameters.
      boolean isSupported​(java.lang.String name)
      Check if a parameter is supported.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parametersNames

        private final java.util.Collection<java.lang.String> parametersNames
        List of the parameters names.
    • Constructor Detail

      • AbstractParameterizable

        protected AbstractParameterizable​(java.lang.String... names)
        Simple constructor.
        Parameters:
        names - names of the supported parameters
      • AbstractParameterizable

        protected AbstractParameterizable​(java.util.Collection<java.lang.String> names)
        Simple constructor.
        Parameters:
        names - names of the supported parameters