public class RDFLiteralConstantImpl extends AbstractNonNullConstant implements RDFLiteralConstant
| Modifier | Constructor and Description |
|---|---|
protected |
RDFLiteralConstantImpl(String value,
RDFDatatype type)
The default constructor.
|
protected |
RDFLiteralConstantImpl(String value,
String language,
TypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
IncrementalEvaluation |
evaluateStrictEq(ImmutableTerm otherTerm,
VariableNullability variableNullability)
Strict equality: require to have the same lexical value and the same datatype
To be distinguished from https://www.w3.org/TR/sparql11-query/#func-RDFterm-equal
(which returns NULL instead of FALSE for two different literals)
|
RDFDatatype |
getType() |
String |
getValue()
Returns the lexical string of this constant.
|
Stream<Variable> |
getVariableStream() |
int |
hashCode() |
boolean |
isGround() |
String |
toString() |
evaluateIsNotNull, isNullablesimplify, simplifyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOptionalType, inferType, isNullisDeterministicevaluateIsNotNull, isNullable, simplify, simplifyprotected RDFLiteralConstantImpl(@Nonnull String value, @Nonnull RDFDatatype type)
value - the constant value.type - the constant type.protected RDFLiteralConstantImpl(@Nonnull String value, @Nonnull String language, TypeFactory typeFactory)
public boolean isGround()
isGround in interface ImmutableTermpublic Stream<Variable> getVariableStream()
getVariableStream in interface ImmutableTermpublic IncrementalEvaluation evaluateStrictEq(ImmutableTerm otherTerm, VariableNullability variableNullability)
evaluateStrictEq in interface ImmutableTermpublic String getValue()
RDFLiteralConstantgetValue in interface ConstantgetValue in interface RDFLiteralConstantpublic RDFDatatype getType()
getType in interface NonNullConstantgetType in interface RDFConstantgetType in interface RDFLiteralConstantCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.