ru.biosoft.access
Class PatternFilter
java.lang.Object
com.beanexplorer.beans.Option
ru.biosoft.access.MutableFilter
ru.biosoft.access.PatternFilter
- All Implemented Interfaces:
- Filter
- public abstract class PatternFilter
- extends MutableFilter
Abstract filter to check some DataElement property
to correspond regular expression.
|
Field Summary |
protected java.lang.String |
match
|
protected java.lang.String |
pattern
|
| Fields inherited from class com.beanexplorer.beans.Option |
notificationEnabled, propagationEnabled |
| Methods inherited from class com.beanexplorer.beans.Option |
addPropertyChangeListener, copyListenersTo, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getParent, isNotificationEnabled, isPropagationEnabled, removePropertyChangeListener, setNotificationEnabled, setParent, setPropagationEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
protected java.lang.String pattern
match
protected java.lang.String match
PatternFilter
public PatternFilter()
getCheckedProperty
public abstract java.lang.String getCheckedProperty(DataElement de)
- This method should be implemented in subclasses to return
property value that should match the pattern.
- Parameters:
de - expected DataElement
getPattern
public java.lang.String getPattern()
setPattern
public void setPattern(java.lang.String pattern)
isAcceptEmpty
public boolean isAcceptEmpty()
setAcceptEmpty
public void setAcceptEmpty(boolean acceptEmpty)
isAcceptable
public boolean isAcceptable(DataElement de)
- Description copied from interface:
Filter
- Return is data element accepted by filter.
- Parameters:
de - Data element.
- Returns:
true - if filter accept specified data element, false otherwise.- See Also:
DataElement
Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.