Class MetricFunction

  • All Implemented Interfaces:
    org.jaxen.Function

    @InternalApi
    @Deprecated
    public class MetricFunction
    extends Object
    implements org.jaxen.Function
    Deprecated.
    Implements the metric() XPath function. Takes the string name of a metric and the context node and returns the result if the metric can be computed, otherwise returns Double.NaN.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Constructor Detail

      • MetricFunction

        public MetricFunction()
        Deprecated.
    • Method Detail

      • call

        public Object call​(org.jaxen.Context context,
                           List args)
                    throws org.jaxen.FunctionCallException
        Deprecated.
        Specified by:
        call in interface org.jaxen.Function
        Throws:
        org.jaxen.FunctionCallException
      • badOperationMetricKeyMessage

        public static String badOperationMetricKeyMessage()
        Deprecated.
      • badClassMetricKeyMessage

        public static String badClassMetricKeyMessage()
        Deprecated.
      • genericBadNodeMessage

        public static String genericBadNodeMessage()
        Deprecated.
      • badMetricKeyArgMessage

        public static String badMetricKeyArgMessage()
        Deprecated.
      • getMetric

        public static double getMetric​(Node n,
                                       String metricKeyName)
        Deprecated.
      • registerSelfInSimpleContext

        public static void registerSelfInSimpleContext()
        Deprecated.