Interface IRegularExpressionService


  • public interface IRegularExpressionService
    IRegularExpressionService
    • Method Detail

      • isPatternValide

        boolean isPatternValide​(java.lang.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​(java.lang.String strValueToTest,
                          java.lang.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​(java.lang.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

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