de.fuberlin.wiwiss.ng4j.triql.parser
Class ParsedLiteral
java.lang.Object
de.fuberlin.wiwiss.ng4j.triql.parser.SimpleNode
de.fuberlin.wiwiss.ng4j.triql.parser.ParsedLiteral
- All Implemented Interfaces:
- com.hp.hpl.jena.rdql.Printable, Settable, Value, Expr, Node
- Direct Known Subclasses:
- Q_BooleanLiteral, Q_NumericLiteral, Q_TextLiteral, Q_URI, Q_URL, WorkingVar
public class ParsedLiteral
- extends SimpleNode
- implements Value, Expr, Settable
isSet
protected boolean isSet
isInt
protected boolean isInt
isBoolean
protected boolean isBoolean
isDouble
protected boolean isDouble
isURI
protected boolean isURI
isString
protected boolean isString
isRDFResource
protected boolean isRDFResource
isRDFLiteral
protected boolean isRDFLiteral
valInt
protected long valInt
valBoolean
protected boolean valBoolean
valDouble
protected double valDouble
valString
protected String valString
valURI
protected String valURI
valRDFLiteral
protected Literal valRDFLiteral
valRDFResource
protected Resource valRDFResource
ParsedLiteral
public ParsedLiteral()
ParsedLiteral
public ParsedLiteral(Value v)
unset
protected void unset()
eval
public Value eval(com.hp.hpl.jena.rdql.Query q,
ResultBinding env)
- Specified by:
eval in interface Expr
isSet
public boolean isSet()
isNumber
public boolean isNumber()
- Specified by:
isNumber in interface Value
isInt
public boolean isInt()
- Specified by:
isInt in interface Value
isDouble
public boolean isDouble()
- Specified by:
isDouble 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
isRDFResource
public boolean isRDFResource()
- Specified by:
isRDFResource in interface Value
isRDFLiteral
public boolean isRDFLiteral()
- Specified by:
isRDFLiteral in interface Value
setInt
public void setInt(long i)
- Specified by:
setInt in interface Settable
setDouble
public void setDouble(double d)
- Specified by:
setDouble in interface Settable
setBoolean
public void setBoolean(boolean b)
- Specified by:
setBoolean in interface Settable
setString
public void setString(String s)
- Specified by:
setString in interface Settable
setURI
public void setURI(String uri)
- Specified by:
setURI in interface Settable
setRDFLiteral
public void setRDFLiteral(Literal l)
- Specified by:
setRDFLiteral in interface Settable
setRDFResource
public void setRDFResource(Resource r)
- Specified by:
setRDFResource in interface Settable
getInt
public long getInt()
- Specified by:
getInt in interface Value
getDouble
public double getDouble()
- Specified by:
getDouble in interface Value
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean in interface Value
getString
public String getString()
- Specified by:
getString in interface Value
getURI
public String getURI()
- Specified by:
getURI in interface Value
getRDFLiteral
public Literal getRDFLiteral()
- Specified by:
getRDFLiteral in interface Value
getRDFResource
public Resource getRDFResource()
- Specified by:
getRDFResource in interface Value
asQuotedString
public String asQuotedString()
- Specified by:
asQuotedString in interface Value
asUnquotedString
public String asUnquotedString()
- Specified by:
asUnquotedString in interface Value
asInfixString
public String asInfixString()
- Specified by:
asInfixString in interface com.hp.hpl.jena.rdql.Printable
asPrefixString
public String asPrefixString()
- Specified by:
asPrefixString in interface com.hp.hpl.jena.rdql.Printable
print
public void print(PrintWriter pw,
int level)
- Specified by:
print in interface com.hp.hpl.jena.rdql.Printable
valueString
public String valueString()
- Specified by:
valueString in interface Value
toString
public String toString()
- Specified by:
toString in interface Value- Overrides:
toString in class SimpleNode
makeString
public static ParsedLiteral makeString(String s)
makeURI
public static Q_URI makeURI(String s)