Class PalindromeFunction
- java.lang.Object
-
- org.eclipse.rdf4j.examples.function.PalindromeFunction
-
-
Constructor Summary
Constructors Constructor Description PalindromeFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Value
evaluate(ValueFactory valueFactory, Value... args)
Executes the palindrome function.String
getURI()
return the URI 'http://example.org/custom-function/palindrome' as a String
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getURI
public String getURI()
return the URI 'http://example.org/custom-function/palindrome' as a String
-
evaluate
public Value evaluate(ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException
Executes the palindrome function.- Specified by:
evaluate
in interfaceFunction
- Parameters:
valueFactory
- aValueFactory
to use for producing the function result.args
- the function input arguments.- Returns:
- A boolean literal representing true if the input argument is a palindrome, false otherwise.
- Throws:
ValueExprEvaluationException
- if more than one argument is supplied or if the supplied argument is not a literal.
-
-