convert
public SoyValueProvider convert(SoyValueConverter valueConverter,
Object obj)
Converts the given object into a corresponding SoyValue or SoyValueProvider. If this converter
is not intended to handle the given object, then returns null.
- Specified by:
convert in interface SoyCustomValueConverter
- Parameters:
valueConverter - The converter to use for internal arbitrary object conversions (if
needed). This should be a general converter that knows how to handle all object types.obj - The object to convert.
- Returns:
- A provider for the converted value (often the converted value itself).