public class ComposedFilter
extends java.lang.Object
implements jadex.commons.IFilter, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
AND
The AND operator.
|
protected jadex.commons.IFilter[] |
filters
The filters
|
static int |
NOT
The NOT operator.
|
protected int |
operator
The operator.
|
static int |
OR
The OR operator.
|
| Constructor and Description |
|---|
ComposedFilter(jadex.commons.IFilter[] filters,
int operator)
Create a composed filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
filter(java.lang.Object object)
Match an object against the filter.
|
java.util.Map |
getEncodableRepresentation()
Get the encodable representation.
|
static java.lang.String |
operatorToString(int operator)
Create a string representation of the operator.
|
java.lang.String |
toString()
Create a string representation of this filter.
|
public static final int AND
public static final int OR
public static final int NOT
protected jadex.commons.IFilter[] filters
protected int operator
public ComposedFilter(jadex.commons.IFilter[] filters,
int operator)
filters - The filters.operator - The operator.public boolean filter(java.lang.Object object)
filter in interface jadex.commons.IFilterobject - The object.java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String operatorToString(int operator)
public java.util.Map getEncodableRepresentation()