|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.TokenFilter
public class TokenFilter
Defines a filter on a token.
| Constructor Summary | |
|---|---|
TokenFilter(String constValue,
String newSeparators)
Constructor with a constant value and separators. |
|
| Method Summary | |
|---|---|
boolean |
complies(Object value)
Checks if the argument complies with the condition of the filter. |
protected boolean |
complies(String value,
String constValue,
String separators)
Helper method for subclasses to do the comparation. |
String |
getConstValue()
Returns the constant value any string is compared with. |
String |
getSeparators()
Returns a string with one or more separators. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TokenFilter(String constValue,
String newSeparators)
constValue - Value to compare with.newSeparators - Separators| Method Detail |
|---|
public final String getSeparators()
public final String getConstValue()
public final boolean complies(Object value)
complies in interface Filtervalue - Object to be tested for compliance
protected final boolean complies(String value,
String constValue,
String separators)
value - Object that contains the property.constValue - Value to compare with.separators - Separators
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||