|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.RegExprFilter
public class RegExprFilter
Defines a filter based on a regular expression.
| Field Summary | |
|---|---|
static int |
FIND
The find method scans the input sequence looking for the next subsequence that matches the pattern. |
static int |
LOOKING_AT
The lookingAt method attempts to match the input sequence, starting at the beginning, against the pattern. |
static int |
MATCHES
The matches method attempts to match the entire input sequence against the pattern. |
| Constructor Summary | |
|---|---|
RegExprFilter(java.lang.String pattern)
Constructor with pattern. |
|
| Method Summary | |
|---|---|
boolean |
complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter. |
java.lang.String |
getPattern()
Return the pattern. |
int |
getType()
Returns the type of the matching. |
java.lang.String |
getTypeName()
Returns the type name of the matching. |
void |
setType(int type)
Sets the type of the matching. |
void |
setTypeName(java.lang.String typeName)
Sets the type name of the matching. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MATCHES
public static final int LOOKING_AT
public static final int FIND
| Constructor Detail |
|---|
public RegExprFilter(java.lang.String pattern)
pattern - Pattern to use (Cannot be NULL!)| Method Detail |
|---|
public final boolean complies(java.lang.Object obj)
complies in interface Filterobj - Object to be tested for compliance
public final java.lang.String getPattern()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final int getType()
public final void setType(int type)
type - Type (0,1,2)public final java.lang.String getTypeName()
public final void setTypeName(java.lang.String typeName)
typeName - Type name ("matches", "lookingAt" or "find") or NULL
(="lookingAt")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||