Class ToStringConverter<T>
java.lang.Object
org.codehaus.mojo.jaxb2.shared.filters.pattern.ToStringConverter<T>
- All Implemented Interfaces:
StringConverter<T>
Trivial converter using the
toString()
method to convert a T object to a String.- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ToStringConverter
public ToStringConverter()
-
-
Method Details
-
convert
Converts the supplied T object to a String.- Specified by:
convert
in interfaceStringConverter<T>
- Parameters:
toConvert
- The T object to convert to a string. Notnull
.- Returns:
- The string form of the toConvert object.
-