public class URLTypeHandler extends Object implements TypeHandler
URL values.NIL| Constructor and Description |
|---|
URLTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object value)
Formats a
URL by calling toString(). |
Class<?> |
getType()
Returns
URL. |
Object |
parse(String text)
Parses a
URL using its constructor URL.URL(String). |
public Object parse(String text) throws TypeConversionException
URL using its constructor URL.URL(String).parse in interface TypeHandlertext - the text to parseURL or null if text
is null or an empty stringTypeConversionException - if the text cannot be parsedpublic String format(Object value)
URL by calling toString(). If value is
null, null is returned.format in interface TypeHandlervalue - the URL to formatpublic Class<?> getType()
URL.getType in interface TypeHandler