Package ca.uqac.lif.cep.xml
Class XPathFunctionGet<T>
- java.lang.Object
-
- ca.uqac.lif.cep.functions.Function
-
- ca.uqac.lif.cep.xml.XPathFunction
-
- ca.uqac.lif.cep.xml.XPathFunctionGet<T>
-
- All Implemented Interfaces:
ca.uqac.lif.azrael.Printable
,ca.uqac.lif.azrael.Readable
,ca.uqac.lif.cep.Duplicable
,ca.uqac.lif.cep.functions.DuplicableFunction
- Direct Known Subclasses:
XPathFunctionGetNumber
,XPathFunctionGetText
public abstract class XPathFunctionGet<T> extends XPathFunction
Utility function to evaluate an XPath expression, ending with atext()
element
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<T>
m_outputType
The type to cast the output to-
Fields inherited from class ca.uqac.lif.cep.xml.XPathFunction
m_expression
-
-
Constructor Summary
Constructors Constructor Description XPathFunctionGet(ca.uqac.lif.xml.XPathExpression exp, java.lang.Class<T> clazz)
XPathFunctionGet(java.lang.String exp, java.lang.Class<T> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract T
castValue(ca.uqac.lif.xml.XmlElement e)
protected T
postProcess(java.util.Collection<ca.uqac.lif.xml.XmlElement> col)
-
Methods inherited from class ca.uqac.lif.cep.xml.XPathFunction
duplicate, evaluate, evaluate, evaluatePlaceholders, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, getValue, parseExpression, toString
-
-
-
-
Field Detail
-
m_outputType
protected java.lang.Class<T> m_outputType
The type to cast the output to
-
-
Method Detail
-
postProcess
protected T postProcess(java.util.Collection<ca.uqac.lif.xml.XmlElement> col)
- Overrides:
postProcess
in classXPathFunction
-
castValue
protected abstract T castValue(ca.uqac.lif.xml.XmlElement e)
-
-