public interface IRegularExpressionService
Modifier and Type | Method and Description |
---|---|
List<RegularExpression> |
getAllRegularExpression()
return a list of regular expression
|
RegularExpression |
getRegularExpressionByKey(int nKey)
return the regular expression object whose identifier is specified in parameter
|
boolean |
isMatches(String strValueToTest,
RegularExpression regularExpression)
return true if the value in parameter verify the regular expression
|
boolean |
isMatches(String strValueToTest,
String strPattern)
return true if the value in parameter verify the pattern
|
boolean |
isPatternValide(RegularExpression regularExpression)
return false if the expression's syntax is invalid
|
boolean |
isPatternValide(String strPattern)
return false if the pattern is invalid
|
boolean isPatternValide(String strPattern)
strPattern
- the pattern to testboolean isPatternValide(RegularExpression regularExpression)
regularExpression
- the regular expression object to testboolean isMatches(String strValueToTest, String strPattern)
strValueToTest
- the value to teststrPattern
- the regular expression Patternboolean isMatches(String strValueToTest, RegularExpression regularExpression)
strValueToTest
- the value to testregularExpression
- the regular expressionRegularExpression getRegularExpressionByKey(int nKey)
nKey
- the regular expression keyList<RegularExpression> getAllRegularExpression()
Copyright © 2020 City of Paris. All rights reserved.