Class StringTypeWrapper

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object fromString​(java.lang.String value)
      Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.
      static TypeWrapper getInstance()  
      java.lang.String toString​(java.lang.Object value)
      Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static TypeWrapper getInstance()
        Returns:
        the singleton instance.
      • fromString

        public java.lang.Object fromString​(java.lang.String value)
        Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.
        Specified by:
        fromString in interface TypeWrapper
        Overrides:
        fromString in class AbstractSimpleTypeWrapper
        Parameters:
        value - parameter value as string
        Returns:
        parameter value as an instance of the proper type
      • toString

        public java.lang.String toString​(java.lang.Object value)
        Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.
        Specified by:
        toString in interface TypeWrapper
        Overrides:
        toString in class AbstractSimpleTypeWrapper
        Parameters:
        value - parameter value as object
        Returns:
        parameter value as string