fr.paris.lutece.portal.service.regularexpression
Interface IRegularExpressionService


public interface IRegularExpressionService

IRegularExpressionService


Method Summary
 java.util.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(java.lang.String strValueToTest, RegularExpression regularExpression)
          return true if the value in parameter verify the regular expression
 boolean isMatches(java.lang.String strValueToTest, java.lang.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(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 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


Copyright © 2009 Mairie de Paris. All Rights Reserved.