public class XSDFuncOp extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
defaultTimezone |
static Duration |
zeroDuration |
public static final String defaultTimezone
public static Duration zeroDuration
public static NodeValue canonicalDecimalNV(BigDecimal d)
public static String canonicalDecimalStrNoIntegerDot(BigDecimal bd)
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".
public static String canonicalDecimalStr(BigDecimal decimal)
Java BigDecimal.toPlainString does not produce XSD 2 compatible lexical forms for integer values.
public static NodeValue booleanEffectiveValueAsNodeValue(NodeValue nv)
public static boolean booleanEffectiveValue(NodeValue nv)
public static NodeValue roundXpath3(NodeValue v, NodeValue precision, boolean isHalfEven)
public static NodeValue javaSubstring(NodeValue nvString, NodeValue nvStart, NodeValue nvFinish)
public static NodeValue strReplace(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement, NodeValue nvFlags)
public static NodeValue strReplace(NodeValue nvStr, Pattern pattern, NodeValue nvReplacement)
public static NodeValue strReplace(NodeValue nvStr, NodeValue nvPattern, NodeValue nvReplacement)
public static NodeValue substring(NodeValue nvString, NodeValue nvStart, NodeValue nvLength)
public static NodeValue fnConcat(List<NodeValue> args)
public static NodeValue strConcat(List<NodeValue> args)
public static NumericType classifyNumeric(String fName, NodeValue nv1, NodeValue nv2)
public static NumericType classifyNumeric(String fName, NodeValue nv)
public static boolean isNumericDatatype(XSDDatatype xsdDatatype)
public static boolean isDecimalDatatype(XSDDatatype xsdDatatype)
public static boolean isIntegerDatatype(XSDDatatype xsdDatatype)
public static boolean isTemporalDatatype(XSDDatatype datatype)
public static boolean isDurationDatatype(XSDDatatype datatype)
public static boolean isBinaryDatatype(XSDDatatype datatype)
public static NodeValue dateTimeCast(NodeValue nv, XSDDatatype xsd)
ExprEvalTypeExceptionpublic static boolean isYearMonth(Duration dur)
public static boolean isDayTime(Duration dur)
public static NodeValue localTimezone()
public static NodeValue adjustDatetimeToTimezone(NodeValue nv1, NodeValue nv2)
Licenced under the Apache License, Version 2.0