public class ParameterElementFilter
extends java.lang.Object
implements jadex.commons.IFilter, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected jadex.commons.collection.MultiCollection<java.lang.String,java.lang.Object> |
values
The required attribute values.
|
| Constructor and Description |
|---|
ParameterElementFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String name,
java.lang.Object value)
Add a required attribute value.
|
boolean |
containsValue(java.lang.String name,
java.lang.Object value)
Returns true if the filter contains the given attribute value.
|
boolean |
filter(java.lang.Object object)
Match an object against the filter.
|
boolean |
hasValues() |
void |
removeValue(java.lang.String name,
java.lang.Object value)
Removes an attribute value.
|
java.lang.String |
toString()
Create a string representation of this filter.
|
protected jadex.commons.collection.MultiCollection<java.lang.String,java.lang.Object> values
public void addValue(java.lang.String name,
java.lang.Object value)
name - The attribute name.value - The attribute value.public void removeValue(java.lang.String name,
java.lang.Object value)
name - The attribute name.value - The attribute value.public boolean containsValue(java.lang.String name,
java.lang.Object value)
name - The attribute name.value - The attribute value.public boolean hasValues()
true if the filter has values.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.Object