org.deri.wsmo4j.logicalexpression
Class ConstraintImpl
java.lang.Object
org.deri.wsmo4j.logicalexpression.LogicalExpressionImpl
org.deri.wsmo4j.logicalexpression.UnaryImpl
org.deri.wsmo4j.logicalexpression.ConstraintImpl
- All Implemented Interfaces:
- org.omwg.logicalexpression.CompoundExpression, org.omwg.logicalexpression.Constraint, org.omwg.logicalexpression.LogicalExpression, org.omwg.logicalexpression.Unary
public class ConstraintImpl
- extends UnaryImpl
- implements org.omwg.logicalexpression.Constraint
- Author:
- DERI Innsbruck, reto.krummenacher@deri.org, DERI Innsbruck, thomas.haselwanter@deri.org
Fields inherited from class org.deri.wsmo4j.logicalexpression.UnaryImpl |
expr |
Constructor Summary |
ConstraintImpl(org.omwg.logicalexpression.LogicalExpression expr)
|
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.Unary |
getOperand, setOperand |
Methods inherited from interface org.omwg.logicalexpression.CompoundExpression |
listOperands, setOperands |
Methods inherited from interface org.omwg.logicalexpression.LogicalExpression |
toString |
ConstraintImpl
public ConstraintImpl(org.omwg.logicalexpression.LogicalExpression expr)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
accept
public void accept(org.omwg.logicalexpression.Visitor v)
- Specified by:
accept
in interface org.omwg.logicalexpression.LogicalExpression
- Specified by:
accept
in class UnaryImpl
equals
public boolean equals(Object o)
The equals
method implements an equivalence relation
on non-null object references. Unary expressions are equal if their operator
and their logical expression are equal.
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.