org.deri.wsmo4j.logicalexpression
Class DisjunctionImpl
java.lang.Object
org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
org.deri.wsmo4j.logicalexpression.BinaryImpl
org.deri.wsmo4j.logicalexpression.DisjunctionImpl
- All Implemented Interfaces:
- org.omwg.logicalexpression.Binary, org.omwg.logicalexpression.CompoundExpression, org.omwg.logicalexpression.Disjunction, org.omwg.logicalexpression.LogicalExpression
public class DisjunctionImpl
- extends BinaryImpl
- implements org.omwg.logicalexpression.Disjunction
- Author:
- DERI Innsbruck, reto.krummenacher@deri.org, DERI Innsbruck, thomas.haselwanter@deri.org
|
Constructor Summary |
DisjunctionImpl(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
|
|
Method Summary |
void |
accept(org.omwg.logicalexpression.Visitor v)
|
boolean |
equals(Object o)
The equals method implements an equivalence relation
on non-null object references. |
| Methods inherited from interface org.omwg.logicalexpression.Binary |
getLeftOperand, getRightOperand, setLeftOperand, setRightOperand |
| Methods inherited from interface org.omwg.logicalexpression.CompoundExpression |
listOperands, setOperands |
| Methods inherited from interface org.omwg.logicalexpression.LogicalExpression |
toString |
DisjunctionImpl
public DisjunctionImpl(org.omwg.logicalexpression.LogicalExpression exprLeft,
org.omwg.logicalexpression.LogicalExpression exprRight)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
accept
public void accept(org.omwg.logicalexpression.Visitor v)
- Specified by:
accept in interface org.omwg.logicalexpression.LogicalExpression
equals
public boolean equals(Object o)
The equals method implements an equivalence relation
on non-null object references. Binary expressions are equal if their operator, their
left logical expression and their right logical expression are equal.
In case the operator is either EQUIVALENT, OR or AND, the left logical expression
must to be equal to either the left or the right logical expression of the obj
argument and analogous for the right logical expression.
It is generally necessary to override the hashCode method whenever this method
is overridden.
- Overrides:
equals in class Object
- Parameters:
o - the reference object with which to compare.
- Returns:
true if this object is the same as the obj
argument; false otherwise.- See Also:
Object.equals(java.lang.Object),
Object.hashCode()
Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.