Interface IRegularExpressionService
-
public interface IRegularExpressionServiceIRegularExpressionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<RegularExpression>getAllRegularExpression()return a list of regular expressionRegularExpressiongetRegularExpressionByKey(int nKey)return the regular expression object whose identifier is specified in parameterbooleanisMatches(java.lang.String strValueToTest, RegularExpression regularExpression)return true if the value in parameter verify the regular expressionbooleanisMatches(java.lang.String strValueToTest, java.lang.String strPattern)return true if the value in parameter verify the patternbooleanisPatternValide(RegularExpression regularExpression)return false if the expression's syntax is invalidbooleanisPatternValide(java.lang.String strPattern)return false if the pattern is invalid
-
-
-
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 teststrPattern- 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 testregularExpression- 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
-
-