Class JPConverter.FromObject

    • Constructor Detail

      • FromObject

        public FromObject()
    • Method Detail

      • convert

        public Sequence 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
      • getCardinality

        public int getCardinality()
        Description copied from class: JPConverter
        Get the cardinality of the XPath value that will result from the conversion
        Overrides:
        getCardinality in class JPConverter
        Returns:
        the cardinality of the result