|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.filter.PropertyFilter
org.fuin.utils4j.filter.RegExprPropertyFilter
public class RegExprPropertyFilter
Defines a filter with a regular expression on a property.
| Constructor Summary | |
|---|---|
RegExprPropertyFilter(java.lang.String newPropertyName,
java.lang.String pattern)
Constructor with property and pattern. |
|
| Method Summary | |
|---|---|
boolean |
complies(java.lang.Object obj)
Checks if the argument complies with the condition of the filter. |
protected java.lang.String[] |
createGetterNames(java.lang.String property)
Creates the appropriate getter names for the type. |
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. |
| Methods inherited from class org.fuin.utils4j.filter.PropertyFilter |
|---|
getProperty, getPropertyName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegExprPropertyFilter(java.lang.String newPropertyName,
java.lang.String pattern)
newPropertyName - Name of the property.pattern - Pattern to use (Cannot be NULL!)| Method Detail |
|---|
protected final java.lang.String[] createGetterNames(java.lang.String property)
createGetterNames in class PropertyFilterproperty - Name of the Property.
public final boolean complies(java.lang.Object obj)
obj - Object to be tested for compliance
public 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")public final java.lang.String getPattern()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||