Class InfoSetUtil


  • public class InfoSetUtil
    extends java.lang.Object
    Type conversions, XPath style.
    Version:
    $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Double NOT_A_NUMBER  
      private static java.lang.Double ONE  
      private static java.lang.Double ZERO  
    • Constructor Summary

      Constructors 
      Constructor Description
      InfoSetUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean booleanValue​(java.lang.Object object)
      Converts the supplied object to boolean.
      static double doubleValue​(java.lang.Object object)
      Converts the supplied object to double.
      static java.lang.Number number​(java.lang.Object object)
      Converts the supplied object to Number.
      static java.lang.String stringValue​(java.lang.Object object)
      Converts the supplied object to String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ZERO

        private static final java.lang.Double ZERO
      • ONE

        private static final java.lang.Double ONE
      • NOT_A_NUMBER

        private static final java.lang.Double NOT_A_NUMBER
    • Constructor Detail

      • InfoSetUtil

        public InfoSetUtil()
    • Method Detail

      • stringValue

        public static java.lang.String stringValue​(java.lang.Object object)
        Converts the supplied object to String.
        Parameters:
        object - to convert
        Returns:
        String value
      • number

        public static java.lang.Number number​(java.lang.Object object)
        Converts the supplied object to Number.
        Parameters:
        object - to convert
        Returns:
        Number result
      • doubleValue

        public static double doubleValue​(java.lang.Object object)
        Converts the supplied object to double.
        Parameters:
        object - to convert
        Returns:
        double
      • booleanValue

        public static boolean booleanValue​(java.lang.Object object)
        Converts the supplied object to boolean.
        Parameters:
        object - to convert
        Returns:
        boolean