org.jrdf.query.expression
Class Constraint<V extends ExpressionVisitor>

java.lang.Object
  extended by org.jrdf.query.expression.Constraint<V>
All Implemented Interfaces:
Serializable, Expression<V>

public final class Constraint<V extends ExpressionVisitor>
extends Object
implements Expression<V>, Serializable

A expression expression comprising a single expression.

Version:
$Revision: 1079 $
Author:
Tom Adams
See Also:
Serialized Form

Constructor Summary
Constraint(List<AttributeValuePair> singleAvp)
           
 
Method Summary
 void accept(V v)
           
 boolean equals(Object obj)
           
 List<AttributeValuePair> getAvp(Map<AttributeName,? extends NodeType> allVariables)
           
 int hashCode()
           
 String toString()
          Delegates to getAvp().toString().
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constraint

public Constraint(List<AttributeValuePair> singleAvp)
Method Detail

getAvp

public List<AttributeValuePair> getAvp(Map<AttributeName,? extends NodeType> allVariables)

accept

public void accept(V v)
Specified by:
accept in interface Expression<V extends ExpressionVisitor>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Delegates to getAvp().toString().

Overrides:
toString in class Object