|
||||||||||
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 operandsMethod Detail |
---|
public java.util.Set<EventFilter> getOperands()
read-only collection
containing the filters
getOperands
in interface LogicalOperationFilter
protected 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()
AbstractEventFilter
AbstractEventFilter
object
getFilterCriterion
in interface EventFilter
getFilterCriterion
in class AbstractEventFilter
set
of getOperands()
public boolean equals(java.lang.Object obj)
equals
in class AbstractEventFilter
public void setNegated(boolean b)
filter
cannot be negated
setNegated
in class AbstractEventFilter
b
- true for negating the filter, false for not
java.lang.IllegalArgumentException
org.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 EventFilter
isNegated
in class AbstractEventFilter
false
org.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 |