|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproper.util.Excluder
public class Excluder
This class is used to check a field name against a "black list" field names. It can also contain wildcards like "bla*", "*bla" or "*bla*". This can be done case-sensitive or -insensitive.
Includer| Constructor Summary | |
|---|---|
Excluder(java.lang.String l)
initializes the object with a comma separated list of field names (case-insensitive!) |
|
Excluder(java.lang.String l,
boolean casesensitive)
initializes the object with a comma separated list of field names (case-sensitive!) |
|
Excluder(java.lang.String l,
boolean casesensitive,
boolean regexp)
initializes the object with a comma separated list of field names (case-sensitive!) |
|
Excluder(java.util.Vector l)
initializes the object with a given list of names (case-insensitive!) |
|
Excluder(java.util.Vector l,
boolean casesensitive)
initializes the object with a given list of names |
|
Excluder(java.util.Vector l,
boolean casesensitive,
boolean regexp)
initializes the object with a given list of names |
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String s)
checks whether the given String is in the list included |
boolean |
contains(java.lang.String s,
boolean regexp)
checks whether the given String is in the list included if regexp is TRUE the given String is assumed to be a regular Expression and that the list contains only normal strings |
boolean |
getCaseSensitive()
returns the case-sensitive state |
java.util.Vector |
getList()
returns the black list |
boolean |
getRegExp()
returns the regular expression state |
static void |
main(java.lang.String[] args)
for testing only |
int |
matchIndex(java.lang.String s)
returns the index in the list where the first match was encountered |
int |
matchIndex(java.lang.String s,
boolean regexp)
returns the index in the list where the first match was encountered; if regexp is TRUE the given String is assumed to be a regular Expression and that the list contains only normal strings |
java.lang.String |
toString()
returns a string representation, i.e. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Excluder(java.util.Vector l)
l - contains field names (wildcard * is allowed)
public Excluder(java.util.Vector l,
boolean casesensitive)
l - contains field names (wildcard * is allowed)casesensitive - whether to be case-sensitive or not
public Excluder(java.util.Vector l,
boolean casesensitive,
boolean regexp)
l - contains field names (wildcard * is allowed)casesensitive - whether to be case-sensitive or notregexp - whether to use perl 5 regexp instead of the simple
"*"-matchingpublic Excluder(java.lang.String l)
l - a string containing field names, separated by comma
public Excluder(java.lang.String l,
boolean casesensitive)
l - a string containing field names, separated by commacasesensitive - whether to be case-sensitive or not
public Excluder(java.lang.String l,
boolean casesensitive,
boolean regexp)
l - a string containing field names, separated by commacasesensitive - whether to be case-sensitive or notregexp - whether to use perl 5 regexp instead of the simple
"*"-matching| Method Detail |
|---|
public java.util.Vector getList()
getList in interface CluderInterfacepublic boolean getCaseSensitive()
getCaseSensitive in interface CluderInterfacepublic boolean getRegExp()
public int matchIndex(java.lang.String s)
matchIndex in interface CluderInterface
public int matchIndex(java.lang.String s,
boolean regexp)
matchIndex in interface CluderInterfaceregexp - whether the given string is a regular expression
or notpublic boolean contains(java.lang.String s)
contains in interface CluderInterface
public boolean contains(java.lang.String s,
boolean regexp)
contains in interface CluderInterfaceregexp - whether the given string is a regular expression
or notpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||