Class JPConverter.FromDouble

    • Constructor Detail

      • FromDouble

        public FromDouble()
    • Method Detail

      • convert

        public DoubleValue convert​(java.lang.Object object,
                                   XPathContext context)
                            throws XPathException
        Description copied from class: JPConverter
        Convert a Java object to an equivalent XPath value
        Specified by:
        convert in class JPConverter
        Parameters:
        object - the java object to be converted
        context - the XPath dynamic evaluation context
        Returns:
        the XPath value resulting from the conversion
        Throws:
        XPathException - if the conversion is not possible or if it fails
      • getItemType

        public ItemType getItemType()
        Description copied from class: JPConverter
        Get the item type of the XPath value that will result from the conversion
        Specified by:
        getItemType in class JPConverter
        Returns:
        the XPath item type