public abstract class LogicalOperationFilterImpl extends AbstractEventFilter implements LogicalOperationFilter
LogicalOperationFilter implementation.
Contains a set of filters and offers package intern methods to modify this set| Constructor and Description |
|---|
LogicalOperationFilterImpl(EventFilter... filters)
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOperand(EventFilter filter)
|
protected void |
addOperands(java.util.Collection<EventFilter> filters)
|
protected void |
clearOperands()
Clears the operands |
protected EventFilter[] |
cloneContents()
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getFilterCriterion()
Returns the unique property for an
AbstractEventFilter object |
java.util.Set<EventFilter> |
getOperands()
Returns a
read-only collection containing the filters |
int |
hashCode() |
boolean |
isNegated()
logical filters are never negated,
negation is done by combining with a NotFilter |
void |
setNegated(boolean b)
filter cannot be negated |
clone, expandNewAndOldValueCollectionsfinalize, getClass, notify, notifyAll, toString, wait, wait, waitmatchesForpublic LogicalOperationFilterImpl(EventFilter... filters)
filters - to be operandspublic java.util.Set<EventFilter> getOperands()
read-only collection containing the filtersgetOperands in interface LogicalOperationFilterprotected void clearOperands()
Clears the operandsprotected void addOperand(EventFilter filter)
filter - to addprotected void addOperands(java.util.Collection<EventFilter> filters)
filters - to addprotected EventFilter[] cloneContents()
public java.lang.Object getFilterCriterion()
AbstractEventFilterAbstractEventFilter objectgetFilterCriterion in interface EventFiltergetFilterCriterion in class AbstractEventFilterset of getOperands()public boolean equals(java.lang.Object obj)
equals in class AbstractEventFilterpublic void setNegated(boolean b)
filter cannot be negatedsetNegated in class AbstractEventFilterb - true for negating the filter, false for notjava.lang.IllegalArgumentExceptionorg.eclipse.ocl.examples.eventmanager.filters.EventFilter#setNegated(boolean)public boolean isNegated()
logical filters are never negated,
negation is done by combining with a NotFilterisNegated in interface EventFilterisNegated in class AbstractEventFilterfalseorg.eclipse.ocl.examples.eventmanager.filters.EventFilter#isNegated()public int hashCode()
hashCode in class AbstractEventFilter