Package openllet.core.rules.builtins
Class StringFunctionAdapter
- java.lang.Object
-
- openllet.core.rules.builtins.StringFunctionAdapter
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
_datatypeURI
StringToStringFunction
_function
-
Constructor Summary
Constructors Constructor Description StringFunctionAdapter(StringToStringFunction function)
StringFunctionAdapter(StringToStringFunction function, java.lang.String datatypeURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Literal
apply(ABox abox, Literal expected, Literal... litArgs)
Apply the function against a set of arguments.
-
-
-
Field Detail
-
_datatypeURI
public final java.lang.String _datatypeURI
-
_function
public final StringToStringFunction _function
-
-
Constructor Detail
-
StringFunctionAdapter
public StringFunctionAdapter(StringToStringFunction function)
-
StringFunctionAdapter
public StringFunctionAdapter(StringToStringFunction function, java.lang.String datatypeURI)
-
-
Method Detail
-
apply
public Literal apply(ABox abox, Literal expected, Literal... litArgs)
Description copied from interface:Function
Apply the function against a set of arguments. Test the _expected argument against the result. Return null if the arguments were invalid. If '_expected' was not null and matched the result, return '_expected'. If '_expected' was not null and did not match, return null; Otherwise, return the result.
-
-