Interface CustomPattern.Builder

  • Method Details

    • keywordRegex

      CustomPattern.Builder keywordRegex(String keywordRegex)

      The keyword regex for the customer pattern. After there is a match to the pattern regex, the keyword regex is used to search within the proximity of the match. If there is a keyword match, then the match is confirmed. If no keyword regex is provided, the pattern regex match will automatically be confirmed. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example, “/ab+c/gi”

      Parameters:
      keywordRegex - The keyword regex for the customer pattern. After there is a match to the pattern regex, the keyword regex is used to search within the proximity of the match. If there is a keyword match, then the match is confirmed. If no keyword regex is provided, the pattern regex match will automatically be confirmed. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example, “/ab+c/gi”
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patternDescription

      CustomPattern.Builder patternDescription(String patternDescription)

      The pattern description for the customer pattern.

      Parameters:
      patternDescription - The pattern description for the customer pattern.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patternName

      CustomPattern.Builder patternName(String patternName)

      The pattern name for the custom pattern.

      Parameters:
      patternName - The pattern name for the custom pattern.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patternRegex

      CustomPattern.Builder patternRegex(String patternRegex)

      The pattern regex for the customer pattern. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example: “/ab+c/gi”.

      Parameters:
      patternRegex - The pattern regex for the customer pattern. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example: “/ab+c/gi”.
      Returns:
      Returns a reference to this object so that method calls can be chained together.