Package org.teiid.xquery.saxon
Class XMLFunctions
- java.lang.Object
-
- org.teiid.xquery.saxon.XMLFunctions
-
public class XMLFunctions extends Object
-
-
Constructor Summary
Constructors Constructor Description XMLFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
escapeName(String name, boolean fully)
static boolean
isNull(net.sf.saxon.om.Item i)
static boolean
isValidNCName(String prefix)
static String[]
validateQName(String name)
static void
validateXpath(String xpath)
Validate whether the XPath is a valid XPath.static String
xpathValue(Object doc, String xpath)
-
-
-
Method Detail
-
xpathValue
public static String xpathValue(Object doc, String xpath) throws net.sf.saxon.trans.XPathException, TeiidProcessingException
- Throws:
net.sf.saxon.trans.XPathException
TeiidProcessingException
-
validateXpath
public static void validateXpath(String xpath) throws TeiidProcessingException
Validate whether the XPath is a valid XPath. If not valid, an XPathExpressionException will be thrown.- Parameters:
xpath
- An xpath expression, for example: a/b/c/getText()- Throws:
TeiidProcessingException
-
validateQName
public static String[] validateQName(String name) throws TeiidProcessingException
- Throws:
TeiidProcessingException
-
isValidNCName
public static boolean isValidNCName(String prefix)
-
isNull
public static boolean isNull(net.sf.saxon.om.Item i)
-
-