(Object o)
| 40 | .coercing( |
| 41 | new Coercing<URI, String>() { |
| 42 | @Override |
| 43 | public String serialize(Object o) throws CoercingSerializeException { |
| 44 | if (o instanceof String) { |
| 45 | return (String) o; |
| 46 | } |
| 47 | |
| 48 | if (o instanceof URL || o instanceof URI) { |
| 49 | return String.valueOf(o); |
| 50 | } |
| 51 | |
| 52 | throw new CoercingSerializeException("Unable to coerce " + o); |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public URI parseValue(Object input) throws CoercingParseValueException { |
no outgoing calls
no test coverage detected