Class ToStringValueProvider<T>

    • Constructor Detail

      • ToStringValueProvider

        public ToStringValueProvider()
        Creates a new value provider with an empty string for the path.
      • ToStringValueProvider

        public ToStringValueProvider​(String path)
        Creates a new value provider.
        Parameters:
        path - the path
    • Method Detail

      • getValue

        public String getValue​(T object)
        Description copied from interface: ValueProvider
        Returns the property value of the given object.
        Specified by:
        getValue in interface ValueProvider<T,​String>
        Parameters:
        object - the target object
        Returns:
        the property value
      • setValue

        public void setValue​(T object,
                             String value)
        Description copied from interface: ValueProvider
        Sets the value of the given object
        Specified by:
        setValue in interface ValueProvider<T,​String>
        Parameters:
        object - the target object
        value - the property value
      • getPath

        public String getPath()
        Description copied from interface: ValueProvider
        Returns the path that this ValueProvider makes available, from the object, to the value.
        Specified by:
        getPath in interface ValueProvider<T,​String>
        Returns:
        the path from the object to the value