Package org.teiid.xquery.saxon
Class XMLHelperImpl
- java.lang.Object
-
- org.teiid.query.function.source.XMLHelper
-
- org.teiid.xquery.saxon.XMLHelperImpl
-
public class XMLHelperImpl extends XMLHelper
-
-
Constructor Summary
Constructors Constructor Description XMLHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XQueryExpressioncompile(String xquery, XMLNamespaces namespaces, List<DerivedColumn> passing, List<XMLTable.XMLColumn> columns)StringconvertToAtomicValue(Object value)StringescapeName(String name, boolean fully)Objectevaluate(XMLType val, XMLCast expression, CommandContext context)ObjectevaluateXMLQuery(List<?> tuple, XMLQuery xmlQuery, boolean exists, Map<String,Object> parameters, CommandContext context)booleanisRealImplementation()booleanisValidNCName(String prefix)RelationalNodenewXMLTableNode(int id, XMLTable xt, ArrayList<XMLTable.XMLColumn> filteredColumns)String[]validateQName(String name)voidvalidateXpath(String xpath)-
Methods inherited from class org.teiid.query.function.source.XMLHelper
getInstance
-
-
-
-
Method Detail
-
compile
public XQueryExpression compile(String xquery, XMLNamespaces namespaces, List<DerivedColumn> passing, List<XMLTable.XMLColumn> columns) throws QueryResolverException
- Overrides:
compilein classXMLHelper- Throws:
QueryResolverException
-
convertToAtomicValue
public String convertToAtomicValue(Object value) throws TransformerException
- Overrides:
convertToAtomicValuein classXMLHelper- Throws:
TransformerException
-
escapeName
public String escapeName(String name, boolean fully)
- Overrides:
escapeNamein classXMLHelper
-
evaluate
public Object evaluate(XMLType val, XMLCast expression, CommandContext context) throws ExpressionEvaluationException
- Overrides:
evaluatein classXMLHelper- Throws:
ExpressionEvaluationException
-
evaluateXMLQuery
public Object evaluateXMLQuery(List<?> tuple, XMLQuery xmlQuery, boolean exists, Map<String,Object> parameters, CommandContext context) throws FunctionExecutionException, BlockedException, TeiidComponentException
- Overrides:
evaluateXMLQueryin classXMLHelper- Throws:
FunctionExecutionExceptionBlockedExceptionTeiidComponentException
-
isRealImplementation
public boolean isRealImplementation()
- Overrides:
isRealImplementationin classXMLHelper
-
isValidNCName
public boolean isValidNCName(String prefix) throws TeiidProcessingException
- Overrides:
isValidNCNamein classXMLHelper- Throws:
TeiidProcessingException
-
newXMLTableNode
public RelationalNode newXMLTableNode(int id, XMLTable xt, ArrayList<XMLTable.XMLColumn> filteredColumns) throws TeiidComponentException
- Overrides:
newXMLTableNodein classXMLHelper- Throws:
TeiidComponentException
-
validateQName
public String[] validateQName(String name) throws TeiidProcessingException
- Overrides:
validateQNamein classXMLHelper- Throws:
TeiidProcessingException
-
validateXpath
public void validateXpath(String xpath) throws TeiidProcessingException
- Overrides:
validateXpathin classXMLHelper- Throws:
TeiidProcessingException
-
-