Class OptionRestrictionRegex

    • Constructor Detail

      • OptionRestrictionRegex

        public OptionRestrictionRegex()
    • Method Detail

      • setPattern

        public void setPattern​(String pattern)

        The regular expression pattern that a string configuration option value with this restriction must match.

        Parameters:
        pattern - The regular expression pattern that a string configuration option value with this restriction must match.
      • getPattern

        public String getPattern()

        The regular expression pattern that a string configuration option value with this restriction must match.

        Returns:
        The regular expression pattern that a string configuration option value with this restriction must match.
      • withPattern

        public OptionRestrictionRegex withPattern​(String pattern)

        The regular expression pattern that a string configuration option value with this restriction must match.

        Parameters:
        pattern - The regular expression pattern that a string configuration option value with this restriction must match.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLabel

        public void setLabel​(String label)

        A unique name representing this regular expression.

        Parameters:
        label - A unique name representing this regular expression.
      • getLabel

        public String getLabel()

        A unique name representing this regular expression.

        Returns:
        A unique name representing this regular expression.
      • withLabel

        public OptionRestrictionRegex withLabel​(String label)

        A unique name representing this regular expression.

        Parameters:
        label - A unique name representing this regular expression.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object