MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / serialize

Method serialize

java/src/org/openqa/selenium/grid/graphql/Types.java:42–53  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

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 {

Callers 9

action.jsFile · 0.80
dom.jsFile · 0.80
find_element.jsFile · 0.80
tinymce.min.jsFile · 0.80
eFunction · 0.80
lFunction · 0.80
nFunction · 0.80
sFunction · 0.80
json.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected