Class 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 a text() element
    • Field Detail

      • m_outputType

        protected java.lang.Class<T> m_outputType
        The type to cast the output to
    • Constructor Detail

      • XPathFunctionGet

        public XPathFunctionGet​(java.lang.String exp,
                                java.lang.Class<T> clazz)
      • XPathFunctionGet

        public XPathFunctionGet​(ca.uqac.lif.xml.XPathExpression exp,
                                java.lang.Class<T> clazz)
    • Method Detail

      • postProcess

        protected T postProcess​(java.util.Collection<ca.uqac.lif.xml.XmlElement> col)
        Overrides:
        postProcess in class XPathFunction
      • castValue

        protected abstract T castValue​(ca.uqac.lif.xml.XmlElement e)