Interface IRegularExpressionService


public interface IRegularExpressionService
IRegularExpressionService
  • Method Details

    • isPatternValide

      boolean isPatternValide(String strPattern)
      return false if the pattern is invalid
      Parameters:
      strPattern - the pattern to test
      Returns:
      false if the pattern is invalid
    • isPatternValide

      boolean isPatternValide(RegularExpression regularExpression)
      return false if the expression's syntax is invalid
      Parameters:
      regularExpression - the regular expression object to test
      Returns:
      false if the expression's syntax is invalid
    • isMatches

      boolean isMatches(String strValueToTest, String strPattern)
      return true if the value in parameter verify the pattern
      Parameters:
      strValueToTest - the value to test
      strPattern - the regular expression Pattern
      Returns:
      true if the value in parameter verify the pattern
    • isMatches

      boolean isMatches(String strValueToTest, RegularExpression regularExpression)
      return true if the value in parameter verify the regular expression
      Parameters:
      strValueToTest - the value to test
      regularExpression - the regular expression
      Returns:
      true if the value verify the regular expression
    • getRegularExpressionByKey

      RegularExpression getRegularExpressionByKey(int nKey)
      return the regular expression object whose identifier is specified in parameter
      Parameters:
      nKey - the regular expression key
      Returns:
      the regular expression object whose identifier is specified in parameter
    • getAllRegularExpression

      List<RegularExpression> getAllRegularExpression()
      return a list of regular expression
      Returns:
      all regular expression