org.openrdf.sesame.sail.query
Class Var

java.lang.Object
  extended byorg.openrdf.sesame.sail.query.Var
All Implemented Interfaces:
StringExpr, ValueExpr

public class Var
extends Object
implements ValueExpr

A variable that can contain a Value.

Author:
Arjohn Kampman

Constructor Summary
Var(String name)
           
Var(String name, Value value)
           
 
Method Summary
 boolean equals(Object other)
           
 String getName()
           
 String getString()
          Gets the String value for this expression.
 Value getValue()
          Gets the value of this expression.
 void getVariables(Collection variables)
          Gets all variables that are used in this StringExpr.
 int hashCode()
           
 boolean hasValue()
           
 boolean isAnonymous()
           
 void setAnonymous(boolean anonymous)
           
 void setValue(Value value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Var

public Var(String name)

Var

public Var(String name,
           Value value)
Method Detail

setAnonymous

public void setAnonymous(boolean anonymous)

isAnonymous

public boolean isAnonymous()

getName

public String getName()

setValue

public void setValue(Value value)

hasValue

public boolean hasValue()

getValue

public Value getValue()
Description copied from interface: ValueExpr
Gets the value of this expression.

Specified by:
getValue in interface ValueExpr

getString

public String getString()
Description copied from interface: StringExpr
Gets the String value for this expression.

Specified by:
getString in interface StringExpr

getVariables

public void getVariables(Collection variables)
Description copied from interface: StringExpr
Gets all variables that are used in this StringExpr.

Specified by:
getVariables in interface StringExpr
Parameters:
variables - a Collection to add relevant Var objects to.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.