public class Disjunction extends Object implements IDisjunct
condition
that defined by the disjunction (logical OR) of one or
more assertions
.ALWAYS
Constructor and Description |
---|
Disjunction(IAssertion... assertions)
Creates a new Disjunction instance.
|
Disjunction(IDisjunct... disjuncts)
Creates a new Disjunction instance.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IConditionVisitor visitor)
Implements the Visitor pattern for this condition.
|
Disjunction |
add(IAssertion assertion)
Adds an assertion to this disjunction.
|
Disjunction |
add(IDisjunct disjunct)
Adds all assertions for the given IDisjunct to this disjunction.
|
boolean |
compatible(PropertySet properties)
Returns true if this condition is compatible with the given test case properties.
|
boolean |
contains(IAssertion assertion)
Returns true if the given assertion is a member of this disjunction.
|
boolean |
equals(Object object) |
int |
getAssertionCount()
Returns the number of assertions for this disjunction.
|
Iterator<IAssertion> |
getAssertions()
Returns the assertions in this disjunction.
|
int |
getDisjunctCount()
Returns the number of disjunctions for this conjunction.
|
Iterator<IDisjunct> |
getDisjuncts()
Returns the disjuncts in this conjunction.
|
int |
hashCode() |
Disjunction |
remove(IAssertion assertion)
Removes an assertion from this disjunction.
|
boolean |
satisfied(PropertySet properties)
Returns true if this condition is satisfied by the given test case properties.
|
String |
toString() |
public Disjunction(IAssertion... assertions)
public Disjunction(IDisjunct... disjuncts)
public boolean satisfied(PropertySet properties)
satisfied
in interface ICondition
public boolean compatible(PropertySet properties)
compatible
in interface ICondition
public void accept(IConditionVisitor visitor)
accept
in interface ICondition
public Disjunction add(IAssertion assertion)
public Disjunction add(IDisjunct disjunct)
public Disjunction remove(IAssertion assertion)
public Iterator<IAssertion> getAssertions()
getAssertions
in interface IDisjunct
public boolean contains(IAssertion assertion)
public int getAssertionCount()
getAssertionCount
in interface IDisjunct
public Iterator<IDisjunct> getDisjuncts()
getDisjuncts
in interface IConjunct
public int getDisjunctCount()
getDisjunctCount
in interface IConjunct
Copyright © 2024 The Cornutum Project. All rights reserved.