Class XSDFuncOp
- java.lang.Object
-
- org.apache.jena.sparql.expr.nodevalue.XSDFuncOp
-
public class XSDFuncOp extends java.lang.ObjectImplementation of XQuery/XPath functions and operators. http://www.w3.org/TR/xpath-functions/
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringdefaultTimezonestatic javax.xml.datatype.DurationzeroDuration
-
Method Summary
-
-
-
Field Detail
-
defaultTimezone
public static final java.lang.String defaultTimezone
- See Also:
- Constant Field Values
-
zeroDuration
public static javax.xml.datatype.Duration zeroDuration
-
-
Method Detail
-
canonicalDecimalNV
public static NodeValue canonicalDecimalNV(java.math.BigDecimal d)
-
canonicalDecimalStrNoIntegerDot
public static java.lang.String canonicalDecimalStrNoIntegerDot(java.math.BigDecimal bd)
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
public static java.lang.String canonicalDecimalStr(java.math.BigDecimal decimal)
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.
-
booleanEffectiveValueAsNodeValue
public static NodeValue booleanEffectiveValueAsNodeValue(NodeValue nv)
F&O fn:boolean
-
booleanEffectiveValue
public static boolean booleanEffectiveValue(NodeValue nv)
F&O fn:boolean
-
roundXpath3
public static NodeValue roundXpath3(NodeValue v, NodeValue precision, boolean isHalfEven)
-
javaSubstring
public static NodeValue javaSubstring(NodeValue nvString, NodeValue nvStart, NodeValue nvFinish)
-
javaSprintf
public static NodeValue javaSprintf(NodeValue nvFormat, java.util.List<NodeValue> valuesToPrint)
-
strReplace
public static NodeValue strReplace(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement, NodeValue nvFlags)
-
strReplace
public static NodeValue strReplace(NodeValue nvStr, java.util.regex.Pattern pattern, NodeValue nvReplacement)
-
strReplace
public static NodeValue strReplace(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement)
-
substring
public static NodeValue substring(NodeValue nvString, NodeValue nvStart, NodeValue nvLength)
-
fnConcat
public static NodeValue fnConcat(java.util.List<NodeValue> args)
F&O fn:concat (implicit cast to strings).
-
strConcat
public static NodeValue strConcat(java.util.List<NodeValue> args)
SPARQL CONCAT (no implicit casts to strings)
-
classifyNumeric
public static NumericType classifyNumeric(java.lang.String fName, NodeValue nv1, NodeValue nv2)
-
classifyNumeric
public static NumericType classifyNumeric(java.lang.String fName, NodeValue nv)
-
isNumericDatatype
public static boolean isNumericDatatype(XSDDatatype xsdDatatype)
-
isDecimalDatatype
public static boolean isDecimalDatatype(XSDDatatype xsdDatatype)
-
isIntegerDatatype
public static boolean isIntegerDatatype(XSDDatatype xsdDatatype)
-
isTemporalDatatype
public static boolean isTemporalDatatype(XSDDatatype datatype)
-
isDurationDatatype
public static boolean isDurationDatatype(XSDDatatype datatype)
-
isBinaryDatatype
public static boolean isBinaryDatatype(XSDDatatype datatype)
-
dateTimeCast
public 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.- Throws:
ExprEvalTypeException
-
isYearMonth
public static boolean isYearMonth(javax.xml.datatype.Duration dur)
-
isDayTime
public static boolean isDayTime(javax.xml.datatype.Duration dur)
-
localTimezone
public static NodeValue localTimezone()
-
adjustDatetimeToTimezone
public static NodeValue adjustDatetimeToTimezone(NodeValue nv1, NodeValue nv2)
-
-