|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.regularexpression.RegularExpressionService
public class RegularExpressionService
this class provides services for use regular expression
| Method Summary | |
|---|---|
java.util.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(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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RegularExpressionService getInstance()
public boolean isAvailable()
public boolean isMatches(java.lang.String strValueToTest,
java.lang.String strPattern)
strValueToTest - the value to teststrPattern - the regular expression Pattern
public boolean isMatches(java.lang.String strValueToTest,
RegularExpression regularExpression)
strValueToTest - the value to testregularExpression - the regular expression
public RegularExpression getRegularExpressionByKey(int nKey)
nKey - the regular expression key
public java.util.List<RegularExpression> getAllRegularExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||