Class StringPropertyDefinition.Builder

    • Method Detail

      • setCaseInsensitive

        public void setCaseInsensitive​(boolean value)
        Set a flag indicating whether values of this property are case-insensitive.
        Parameters:
        value - true if values are case-insensitive, or false otherwise.
      • setPattern

        public void setPattern​(String pattern,
                               String patternUsage)
        Set the regular expression pattern which values of this property must match. By default there is no pattern defined.
        Parameters:
        pattern - The regular expression pattern string, or null if there is no pattern.
        patternUsage - A user-friendly usage string representing the pattern which can be used in error messages and help (e.g. for patterns which match a host/port combination, the usage string "HOST:PORT" would be appropriate).
        Throws:
        PatternSyntaxException - If the provided regular expression pattern has an invalid syntax.