org.deri.iris.builtins.string
Class StringStartsWithWithoutCollationBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.string.StringStartsWithWithoutCollationBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class StringStartsWithWithoutCollationBuiltin
- extends BooleanBuiltin
Represents the RIF built-in func:starts-with as described in
http://www.w3.org/TR/xpath-functions/#func-starts-with. Restricts the value
of collation to Unicode code point collation
(http://www.w3.org/2005/xpath-functions/collation/codepoint).
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
StringStartsWithWithoutCollationBuiltin
public StringStartsWithWithoutCollationBuiltin(ITerm... terms)
- Constructor.
- Parameters:
terms - The terms, where the term at the first position is the
haystack and the term at the second position is
the needle. The haystack is the
string being searched for the occurrence of the
needle. The needle is the string to
be searched for in the haystack.
- Throws:
IllegalArgumentException - if one of the terms is null
computeResult
protected boolean computeResult(ITerm[] terms)
- Description copied from class:
BooleanBuiltin
- Compute the result of the comparison.
- Specified by:
computeResult in class BooleanBuiltin
- Parameters:
terms - The terms
- Returns:
- The result of the comparison.