com.agical.rmock.core.match.constraint
Class AbstractConstraint
java.lang.Object
com.agical.rmock.core.match.operator.AbstractExpression
com.agical.rmock.core.match.constraint.AbstractConstraint
- All Implemented Interfaces:
- Constraint, Expression
- Direct Known Subclasses:
- AnythingConstraint, ClassAssignableToConstraint, ClassIsAbstractConstraint, ClassNameConstraint, ContainsConstraint, EndsWithConstraint, EqualsConstraint, GreaterThanConstraint, GreaterThanOrEqualConstraint, InstanceOfConstraint, IsFalseConstraint, IsNullConstraint, IsTrueConstraint, LessThanConstraint, LessThanOrEqualConstraint, MethodNameConstraint, MethodParameterTypesConstraint, SameConstraint, StartsWithConstraint
public abstract class AbstractConstraint
- extends AbstractExpression
- implements Constraint
(c) Agical AB 2005
- Author:
- joakim.ohlrogge
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractConstraint
public AbstractConstraint(java.lang.String name,
java.lang.Object reference)
getName
public java.lang.String getName()
- Description copied from interface:
Constraint
- returns the name of this constraint
- Specified by:
getName
in interface Constraint
- See Also:
Constraint.getName()
getReference
public Reference getReference()
- Specified by:
getReference
in interface Constraint
- Returns:
- the object that this contraint uses as reference. Null if this constraint does not have a reference.
- See Also:
Constraint.getReference()
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
- See Also:
Constraint#describeTo(ExpressionDescriber)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2005-2008 Agical AB. All Rights Reserved.