Package jadex.tools.comanalyzer
Class ComposedFilter
- java.lang.Object
-
- jadex.tools.comanalyzer.ComposedFilter
-
- All Implemented Interfaces:
IFilter,java.io.Serializable
public class ComposedFilter extends java.lang.Object implements IFilter, java.io.Serializable
A filter checks if an object matches the given subfilters.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComposedFilter(IFilter[] filters, int operator)Create a composed filter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(java.lang.Object object)Match an object against the filter.java.util.MapgetEncodableRepresentation()Get the encodable representation.static java.lang.StringoperatorToString(int operator)Create a string representation of the operator.java.lang.StringtoString()Create a string representation of this filter.
-
-
-
Field Detail
-
AND
public static final int AND
The AND operator.- See Also:
- Constant Field Values
-
OR
public static final int OR
The OR operator.- See Also:
- Constant Field Values
-
NOT
public static final int NOT
The NOT operator.- See Also:
- Constant Field Values
-
filters
protected IFilter[] filters
The filters
-
operator
protected int operator
The operator.
-
-
Constructor Detail
-
ComposedFilter
public ComposedFilter(IFilter[] filters, int operator)
Create a composed filter.- Parameters:
filters- The filters.operator- The operator.
-
-
Method Detail
-
filter
public boolean filter(java.lang.Object object)
Match an object against the filter.
-
toString
public java.lang.String toString()
Create a string representation of this filter.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representing this filter.
-
operatorToString
public static java.lang.String operatorToString(int operator)
Create a string representation of the operator.- Returns:
- A string representing the operator.
-
getEncodableRepresentation
public java.util.Map getEncodableRepresentation()
Get the encodable representation.
-
-