public abstract class AbstractConstraintFilter<T> extends java.lang.Object implements IAsyncFilter<T>
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
Modifier and Type | Field and Description |
---|---|
protected IExternalAccess |
component
The component.
|
protected java.lang.String |
propname
Name of the property being kept constant.
|
protected java.lang.Object |
value
The value once it is bound.
|
ALWAYS, NEVER
Constructor and Description |
---|
AbstractConstraintFilter()
Creates a constant value filter.
|
AbstractConstraintFilter(IExternalAccess component,
java.lang.String propname,
java.lang.Object value)
Creates a constant value filter.
|
Modifier and Type | Method and Description |
---|---|
abstract IFuture<java.lang.Boolean> |
doFilter(IService service,
java.lang.Object value)
Test if an object passes the filter.
|
IFuture<java.lang.Boolean> |
filter(T service)
Test if an object passes the filter.
|
java.lang.Object |
getValue()
Gets the value.
|
java.lang.String |
getValueName()
Gets the valuename.
|
void |
setValue(java.lang.Object value)
Sets the value.
|
void |
setValueName(java.lang.String valuename)
Sets the valuename.
|
protected IExternalAccess component
protected java.lang.String propname
protected java.lang.Object value
public AbstractConstraintFilter()
public AbstractConstraintFilter(IExternalAccess component, java.lang.String propname, java.lang.Object value)
public final IFuture<java.lang.Boolean> filter(T service)
filter
in interface IAsyncFilter<T>
public abstract IFuture<java.lang.Boolean> doFilter(IService service, java.lang.Object value)
public java.lang.String getValueName()
public void setValueName(java.lang.String valuename)
valuename
- The valuename to set.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- The value to set.