com.agical.rmock.core.match.operator
Class NotOperator

java.lang.Object
  extended by com.agical.rmock.core.match.operator.AbstractExpression
      extended by com.agical.rmock.core.match.operator.NotOperator
All Implemented Interfaces:
Expression, Operator

public class NotOperator
extends AbstractExpression
implements Operator

(c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
NotOperator(Expression wrappedConstraint)
           
 
Method Summary
 void describeWith(ExpressionDescriber constraintDescriber)
          Describes this expression with the given describer
 boolean passes(java.lang.Object object)
           
 
Methods inherited from class com.agical.rmock.core.match.operator.AbstractExpression
and, or, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.agical.rmock.core.match.Expression
and, or, xor
 

Constructor Detail

NotOperator

public NotOperator(Expression wrappedConstraint)
Parameters:
wrappedConstraint -
Method Detail

passes

public boolean passes(java.lang.Object object)
Specified by:
passes in interface Expression
Parameters:
object - The object to check
Returns:
true if the object passes this constraint, otherwise false.
See Also:
Expression.passes(java.lang.Object)

describeWith

public void describeWith(ExpressionDescriber constraintDescriber)
                  throws java.io.IOException
Description copied from interface: Expression
Describes this expression with the given describer

Specified by:
describeWith in interface Expression
Parameters:
constraintDescriber - The describer to use
Throws:
java.io.IOException


Copyright © 2005-2008 Agical AB. All Rights Reserved.