java.lang.Object
org.apache.jena.sparql.expr.nodevalue.XSDFuncOp
Implementation of XQuery/XPath functions and operators.
http://www.w3.org/TR/xpath-functions/
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeValue
static NodeValue
adjustDatetimeToTimezone
(NodeValue nv1, NodeValue nv2) static boolean
F&O fn:booleanstatic NodeValue
F&O fn:booleanstatic String
canonicalDecimalStr
(BigDecimal decimal) Canonical decimal according to XML Schema Datatype 2.static String
Decimal format, cast-to-string.static NodeValue
static NumericType
classifyNumeric
(String fName, NodeValue nv) static NumericType
classifyNumeric
(String fName, NodeValue nv1, NodeValue nv2) static int
compareBoolean
(NodeValue nv1, NodeValue nv2) static int
compareDateTime
(NodeValue nv1, NodeValue nv2) static int
compareDuration
(NodeValue nv1, NodeValue nv2) static int
compareNumeric
(NodeValue nv1, NodeValue nv2) static int
compareString
(NodeValue nv1, NodeValue nv2) static NodeValue
dateTimeCast
(NodeValue nv, XSDDatatype xsd) Cast a NodeValue to a date/time type (xsd dateTime, date, time, g*) according to F&O 17.1.5 Casting to date and time types Throws an exception on incorrect case.static NodeValue
dtDateTime
(NodeValue nv1, NodeValue nv2) static NodeValue
static NodeValue
dtGetHours
(NodeValue nv) static NodeValue
static NodeValue
dtGetMonth
(NodeValue nv) static NodeValue
static NodeValue
static NodeValue
static NodeValue
static NodeValue
durGetDays
(NodeValue nv) static NodeValue
durGetHours
(NodeValue nv) static NodeValue
static NodeValue
static NodeValue
static NodeValue
durGetSign
(NodeValue nv) static NodeValue
durGetYears
(NodeValue nv) static NodeValue
static NodeValue
F&O fn:concat (implicit cast to strings).static NodeValue
formatNumber
(NodeValue nv, NodeValue picture, NodeValue nvLocale) fn:format-number The 3rd argument, if present, called decimal-format-name, is here a IETF BCP 47 language tag string.static NodeValue
static NodeValue
static NodeValue
getMinutes
(NodeValue nv) static NodeValue
static NodeValue
getSeconds
(NodeValue nv) static NodeValue
static boolean
isBinaryDatatype
(XSDDatatype datatype) static boolean
static boolean
isDecimalDatatype
(XSDDatatype xsdDatatype) static boolean
isDurationDatatype
(XSDDatatype datatype) static boolean
isIntegerDatatype
(XSDDatatype xsdDatatype) static boolean
static boolean
isNumericDatatype
(XSDDatatype xsdDatatype) static boolean
isTemporalDatatype
(XSDDatatype datatype) static boolean
isYearMonth
(Duration dur) static NodeValue
javaSprintf
(NodeValue nvFormat, List<NodeValue> valuesToPrint) static NodeValue
javaSubstring
(NodeValue v1, NodeValue v2) static NodeValue
javaSubstring
(NodeValue nvString, NodeValue nvStart, NodeValue nvFinish) static NodeValue
static NodeValue
static NodeValue
static NodeValue
F&O fn:notstatic NodeValue
static NodeValue
static NodeValue
numericMod
(NodeValue nv1, NodeValue nv2) static NodeValue
numIntegerDivide
(NodeValue nv1, NodeValue nv2) Integer dividestatic NodeValue
numMultiply
(NodeValue nv1, NodeValue nv2) static NodeValue
numSubtract
(NodeValue nv1, NodeValue nv2) static NodeValue
static NodeValue
roundXpath3
(NodeValue v, NodeValue precision, boolean isHalfEven) static NodeValue
static NodeValue
static NodeValue
static NodeValue
SPARQL CONCAT (no implicit casts to strings)static NodeValue
strContains
(NodeValue string, NodeValue match) static NodeValue
static NodeValue
strEndsWith
(NodeValue string, NodeValue match) static NodeValue
static NodeValue
strLowerCase
(NodeValue string) static NodeValue
fn:normalizeSpacestatic NodeValue
strNormalizeUnicode
(NodeValue v1, NodeValue v2) static NodeValue
strReplace
(NodeValue nvStr, Pattern pattern, NodeValue nvReplacement) static NodeValue
strReplace
(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement) static NodeValue
strReplace
(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement, NodeValue nvFlags) static NodeValue
strStartsWith
(NodeValue string, NodeValue match) static NodeValue
strUpperCase
(NodeValue string) static NodeValue
static NodeValue
static NodeValue
unaryMinus
(NodeValue nv) static NodeValue
-
Field Details
-
defaultTimezone
- See Also:
-
zeroDuration
-
-
Method Details
-
numAdd
-
numSubtract
-
numMultiply
-
numDivide
-
numIntegerDivide
Integer divide -
numericMod
-
canonicalDecimalStrNoIntegerDot
Decimal format, cast-to-string.Decimal canonical form where integer values have no ".0" (as in XSD 1.1).
In XSD 2, canonical integer-valued decimal has a trailing ".0". In F&O v 3.1, xs:string cast of a decimal which integer valued, does not have the trailing ".0".
-
canonicalDecimalStr
Canonical decimal according to XML Schema Datatype 2. Integer-valued decimals have a trailing ".0". (In XML Schema Datatype 1.1 they did not have a ".0".)Java BigDecimal.toPlainString does not produce XSD 2 compatible lexical forms for integer values.
-
max
-
min
-
not
F&O fn:not -
booleanEffectiveValueAsNodeValue
F&O fn:boolean -
booleanEffectiveValue
F&O fn:boolean -
unaryMinus
-
unaryPlus
-
abs
-
ceiling
-
floor
-
round
-
roundXpath3
-
sqrt
-
javaSubstring
-
javaSubstring
-
javaSprintf
-
strlen
-
strReplace
-
strReplace
-
strReplace
-
substring
-
substring
-
strContains
-
strStartsWith
-
strEndsWith
-
strBefore
-
strAfter
-
strLowerCase
-
strUpperCase
-
strEncodeForURI
-
fnConcat
F&O fn:concat (implicit cast to strings). -
strConcat
SPARQL CONCAT (no implicit casts to strings) -
strNormalizeSpace
fn:normalizeSpace -
strNormalizeUnicode
-
classifyNumeric
-
classifyNumeric
-
isNumericDatatype
-
isNumeric
-
isDecimalDatatype
-
isIntegerDatatype
-
isTemporalDatatype
-
isDurationDatatype
-
isBinaryDatatype
-
compareNumeric
-
compareString
-
compareDateTime
-
compareDuration
-
compareBoolean
-
dateTimeCast
Cast a NodeValue to a date/time type (xsd dateTime, date, time, g*) according to F&O 17.1.5 Casting to date and time types Throws an exception on incorrect case.- Throws:
ExprEvalTypeException
-
getYear
-
getMonth
-
getDay
-
getHours
-
getMinutes
-
getSeconds
-
dtDateTime
-
dtGetYear
-
dtGetMonth
-
dtGetDay
-
dtGetHours
-
dtGetMinutes
-
dtGetSeconds
-
dtGetTZ
-
dtGetTimezone
-
isYearMonth
-
isDayTime
-
durGetYears
-
durGetMonths
-
durGetDays
-
durGetHours
-
durGetMinutes
-
durGetSeconds
-
durGetSign
-
localTimezone
-
adjustDatetimeToTimezone
-
formatNumber
fn:format-number The 3rd argument, if present, called decimal-format-name, is here a IETF BCP 47 language tag string.
-