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 SummaryConstructors Constructor Description ComposedFilter(IFilter[] filters, int operator)Create a composed filter.
 - 
Method SummaryAll 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- 
ANDpublic static final int AND The AND operator.- See Also:
- Constant Field Values
 
 - 
ORpublic static final int OR The OR operator.- See Also:
- Constant Field Values
 
 - 
NOTpublic static final int NOT The NOT operator.- See Also:
- Constant Field Values
 
 - 
filtersprotected IFilter[] filters The filters
 - 
operatorprotected int operator The operator.
 
- 
 - 
Constructor Detail- 
ComposedFilterpublic ComposedFilter(IFilter[] filters, int operator) Create a composed filter.- Parameters:
- filters- The filters.
- operator- The operator.
 
 
- 
 - 
Method Detail- 
filterpublic boolean filter(java.lang.Object object) Match an object against the filter.
 - 
toStringpublic java.lang.String toString() Create a string representation of this filter.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- A string representing this filter.
 
 - 
operatorToStringpublic static java.lang.String operatorToString(int operator) Create a string representation of the operator.- Returns:
- A string representing the operator.
 
 - 
getEncodableRepresentationpublic java.util.Map getEncodableRepresentation() Get the encodable representation.
 
- 
 
-