org.deri.wsmo4j.logicalexpression
Class ConjunctionImpl

java.lang.Object
  extended by org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
      extended by org.deri.wsmo4j.logicalexpression.BinaryImpl
          extended by org.deri.wsmo4j.logicalexpression.ConjunctionImpl
All Implemented Interfaces:
org.omwg.logicalexpression.Binary, org.omwg.logicalexpression.CompoundExpression, org.omwg.logicalexpression.Conjunction, org.omwg.logicalexpression.LogicalExpression

public class ConjunctionImpl
extends BinaryImpl
implements org.omwg.logicalexpression.Conjunction

Author:
DERI Innsbruck, reto.krummenacher@deri.org, DERI Innsbruck, thomas.haselwanter@deri.org

Field Summary
 
Fields inherited from class org.deri.wsmo4j.logicalexpression.BinaryImpl
exprLeft, exprRight
 
Constructor Summary
ConjunctionImpl(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 class org.deri.wsmo4j.logicalexpression.BinaryImpl
getLeftOperand, getRightOperand, hashCode, listOperands, setLeftOperand, setOperands, setRightOperand
 
Methods inherited from class org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
getStringRepresentation, setStringRepresentation, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

ConjunctionImpl

public ConjunctionImpl(org.omwg.logicalexpression.LogicalExpression exprLeft,
                       org.omwg.logicalexpression.LogicalExpression exprRight)
                throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

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.