Package jadex.tools.comanalyzer
Class ParameterElementFilter
- java.lang.Object
- 
- jadex.tools.comanalyzer.ParameterElementFilter
 
- 
- All Implemented Interfaces:
- IFilter,- java.io.Serializable
 - Direct Known Subclasses:
- ComponentFilter,- MessageFilter
 
 public class ParameterElementFilter extends java.lang.Object implements IFilter, java.io.Serializable The parameter element filter filters ParameterElement objects based on their parameter values. Parameter values of elements can be matched against required values, or recursively against other filters. When more than one value and / or filter is specified for an attribute, only one of those has to match.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected MultiCollection<java.lang.String,java.lang.Object>valuesThe required attribute values.
 - 
Constructor SummaryConstructors Constructor Description ParameterElementFilter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(java.lang.String name, java.lang.Object value)Add a required attribute value.booleancontainsValue(java.lang.String name, java.lang.Object value)Returns true if the filter contains the given attribute value.booleanfilter(java.lang.Object object)Match an object against the filter.booleanhasValues()voidremoveValue(java.lang.String name, java.lang.Object value)Removes an attribute value.java.lang.StringtoString()Create a string representation of this filter.
 
- 
- 
- 
Field Detail- 
valuesprotected MultiCollection<java.lang.String,java.lang.Object> values The required attribute values.
 
- 
 - 
Method Detail- 
addValuepublic void addValue(java.lang.String name, java.lang.Object value)Add a required attribute value. The attribute value is checked with equals().- Parameters:
- name- The attribute name.
- value- The attribute value.
 
 - 
removeValuepublic void removeValue(java.lang.String name, java.lang.Object value)Removes an attribute value.- Parameters:
- name- The attribute name.
- value- The attribute value.
 
 - 
containsValuepublic boolean containsValue(java.lang.String name, java.lang.Object value)Returns true if the filter contains the given attribute value.- Parameters:
- name- The attribute name.
- value- The attribute value.
- Returns:
- true if the filter contains the given attribute value.
 
 - 
hasValuespublic boolean hasValues() - Returns:
- trueif the filter has values.
 
 - 
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.
 
 
- 
 
-