public class RegularExpressionService extends Object implements fr.paris.lutece.portal.service.regularexpression.IRegularExpressionService
| Constructor and Description |
|---|
RegularExpressionService() |
| Modifier and Type | Method and Description |
|---|---|
List<fr.paris.lutece.portal.business.regularexpression.RegularExpression> |
getAllRegularExpression()
return a list of regular expression
|
fr.paris.lutece.portal.business.regularexpression.RegularExpression |
getRegularExpressionByKey(int nKey)
return the regular expression object whose identifier is specified in parameter
|
boolean |
isMatches(String strValueToTest,
fr.paris.lutece.portal.business.regularexpression.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(fr.paris.lutece.portal.business.regularexpression.RegularExpression regularExpression)
return false if the expression's syntax is invalid
|
boolean |
isPatternValide(String strPattern)
return false if the pattern is invalid
|
public boolean isPatternValide(String strPattern)
isPatternValide in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServicestrPattern - the pattern to testpublic boolean isPatternValide(fr.paris.lutece.portal.business.regularexpression.RegularExpression regularExpression)
isPatternValide in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServiceregularExpression - the regular expression object to testpublic boolean isMatches(String strValueToTest, String strPattern)
isMatches in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServicestrValueToTest - the value to teststrPattern - the regular expression Patternpublic boolean isMatches(String strValueToTest, fr.paris.lutece.portal.business.regularexpression.RegularExpression regularExpression)
isMatches in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServicestrValueToTest - the value to testregularExpression - the regular expressionpublic fr.paris.lutece.portal.business.regularexpression.RegularExpression getRegularExpressionByKey(int nKey)
getRegularExpressionByKey in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServicenKey - the regular expression keypublic List<fr.paris.lutece.portal.business.regularexpression.RegularExpression> getAllRegularExpression()
getAllRegularExpression in interface fr.paris.lutece.portal.service.regularexpression.IRegularExpressionServiceCopyright © 2020 City of Paris. All rights reserved.