public final class RegularExpressionService extends Object
Modifier and Type | Method and Description |
---|---|
List<RegularExpression> |
getAllRegularExpression()
return a list of regular expression
|
static RegularExpressionService |
getInstance()
Returns the unique instance of the service
|
RegularExpression |
getRegularExpressionByKey(int nKey)
return the regular expression object whose identifier is specified in
parameter
|
boolean |
isAvailable() |
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
|
public static RegularExpressionService getInstance()
public boolean isAvailable()
public boolean isMatches(String strValueToTest, String strPattern)
strValueToTest
- the value to teststrPattern
- the regular expression Patternpublic boolean isMatches(String strValueToTest, RegularExpression regularExpression)
strValueToTest
- the value to testregularExpression
- the regular expressionpublic RegularExpression getRegularExpressionByKey(int nKey)
nKey
- the regular expression keypublic List<RegularExpression> getAllRegularExpression()
Copyright © 2020 City of Paris. All rights reserved.