com.hp.hpl.jena.rdf.query
Class WorkingVar

java.lang.Object
  |
  +--com.hp.hpl.jena.rdf.query.WorkingVar
All Implemented Interfaces:
java.lang.Cloneable, Printable, Settable, Value

public class WorkingVar
extends java.lang.Object
implements Printable, Settable, java.lang.Cloneable

Query engine working variable - different from variables in the query language. Working variables are settable values for holding intermediate results.


Constructor Summary
WorkingVar()
           
 
Method Summary
 java.lang.String asInfixString()
           
 java.lang.String asPrefixString()
           
 java.lang.String asQuotedString()
           
 java.lang.String asUnquotedString()
           
 boolean getBoolean()
           
 int getInt()
           
 long getLong()
           
 java.lang.String getString()
           
 java.lang.String getURI()
           
 boolean isBoolean()
           
 boolean isInt()
           
 boolean isLong()
           
 boolean isNumber()
           
 boolean isString()
           
 boolean isURI()
           
 void print(java.io.PrintWriter pw, int level)
           
 void setBoolean(boolean b)
           
 void setInt(int i)
           
 void setLong(long l)
           
 void setString(java.lang.String s)
           
 void setURI(java.lang.String uri)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkingVar

public WorkingVar()
Method Detail

setInt

public void setInt(int i)
Specified by:
setInt in interface Settable

setLong

public void setLong(long l)
Specified by:
setLong in interface Settable

setBoolean

public void setBoolean(boolean b)
Specified by:
setBoolean in interface Settable

setString

public void setString(java.lang.String s)
Specified by:
setString in interface Settable

setURI

public void setURI(java.lang.String uri)
Specified by:
setURI in interface Settable

isNumber

public boolean isNumber()
Specified by:
isNumber in interface Value

isInt

public boolean isInt()
Specified by:
isInt in interface Value

isLong

public boolean isLong()
Specified by:
isLong in interface Value

isBoolean

public boolean isBoolean()
Specified by:
isBoolean in interface Value

isString

public boolean isString()
Specified by:
isString in interface Value

isURI

public boolean isURI()
Specified by:
isURI in interface Value

getInt

public int getInt()
Specified by:
getInt in interface Value

getLong

public long getLong()
Specified by:
getLong in interface Value

getBoolean

public boolean getBoolean()
Specified by:
getBoolean in interface Value

getString

public java.lang.String getString()
Specified by:
getString in interface Value

getURI

public java.lang.String getURI()
Specified by:
getURI in interface Value

asInfixString

public java.lang.String asInfixString()
Specified by:
asInfixString in interface Printable

asQuotedString

public java.lang.String asQuotedString()
Specified by:
asQuotedString in interface Value

asPrefixString

public java.lang.String asPrefixString()
Specified by:
asPrefixString in interface Printable

print

public void print(java.io.PrintWriter pw,
                  int level)
Specified by:
print in interface Printable

asUnquotedString

public java.lang.String asUnquotedString()
Specified by:
asUnquotedString in interface Value

toString

public java.lang.String toString()
Specified by:
toString in interface Value
Overrides:
toString in class java.lang.Object


Copyright 2001 Hewlett-Packard. All Rights Reserved.