|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
public abstract class LogicalOperationFilterImpl
Is the basis for any LogicalOperationFilter implementation.
Contains a set of filters and offers package intern methods to modify this set
| Constructor Summary | |
|---|---|
LogicalOperationFilterImpl(EventFilter... filters)
Creates a filter containing the given filters as operands |
|
| Method Summary | |
|---|---|
protected void |
addOperand(EventFilter filter)
Adds an filter to
the operands |
protected void |
addOperands(java.util.Collection<EventFilter> filters)
Set#addAll(Collection)Adds a collection of filters to
the operands |
protected void |
clearOperands()
Clears the operands |
protected EventFilter[] |
cloneContents()
Creates a new Array with clone
for each contained operand |
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 |
| Methods inherited from class org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter |
|---|
clone, expandNewAndOldValueCollections |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ocl.examples.eventmanager.EventFilter |
|---|
matchesFor |
| Constructor Detail |
|---|
public LogicalOperationFilterImpl(EventFilter... filters)
filters as operands
filters - to be operands| Method Detail |
|---|
public java.util.Set<EventFilter> getOperands()
read-only collection containing the filters
getOperands in interface LogicalOperationFilterprotected void clearOperands()
Clears the operands
protected void addOperand(EventFilter filter)
Adds an filter to
the operands
filter - to addprotected void addOperands(java.util.Collection<EventFilter> filters)
Set#addAll(Collection)Adds a collection of filters to
the operands
filters - to addprotected EventFilter[] cloneContents()
clone
for each contained operand
public java.lang.Object getFilterCriterion()
AbstractEventFilterAbstractEventFilter object
getFilterCriterion 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 negated
setNegated in class AbstractEventFilterb - true for negating the filter, false for not
java.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 NotFilter
isNegated in interface EventFilterisNegated in class AbstractEventFilterfalseorg.eclipse.ocl.examples.eventmanager.filters.EventFilter#isNegated()public int hashCode()
hashCode in class AbstractEventFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||