com.agical.rmock.core.match
Interface Constraint

All Superinterfaces:
Expression
All Known Implementing Classes:
AbstractConstraint, AnythingConstraint, ClassAssignableToConstraint, ClassIsAbstractConstraint, ClassNameConstraint, ContainsConstraint, EndsWithConstraint, EqualsConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, InstanceOfConstraint, IsFalseConstraint, IsNullConstraint, IsTrueConstraint, LessThanConstraint, LessThanOrEqualConstraint, MethodNameConstraint, MethodParameterTypesConstraint, SameConstraint, StartsWithConstraint

public interface Constraint
extends Expression

(c) Agical AB 2005

Author:
joakim.ohlrogge A contraint checks if an object passes the constraint or not.

Method Summary
 String getName()
          returns the name of this constraint
 Reference getReference()
           
 
Methods inherited from interface com.agical.rmock.core.match.Expression
and, describeWith, or, passes, xor
 

Method Detail

getName

String getName()
returns the name of this constraint


getReference

Reference getReference()
Returns:
the object that this contraint uses as reference. Null if this constraint does not have a reference.


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