@Test public void deserializeObject() throws Exception { ParentType value = test.fromJSON(DEFAULT_VALUE); assertEquals("parent's subtype value did not deserialize correctly", PARENT.getFirst().getValue(), value.getFirst().getValue()); assertEquals("parent's long value is not expected value", PARENT.getSecond(), value.getSecond()); assertEquals("parent's string value is not expected value", PARENT.getThird(), value.getThird()); }
public T fromJSON(String json) throws JsonMappingException, JsonParseException, IOException { return fromJSON(new StringReader(json)); }
AbstractJsonTranslator { public T fromJSON(String json) throws JsonMappingException, JsonParseException, IOException { return fromJSON(new StringReader(json)); } }
AbstractJsonTranslator { public T fromJSON(String json) throws JsonMappingException, JsonParseException, IOException { return fromJSON(new StringReader(json)); } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); }
AbstractJsonTranslator { public T fromJSON(String json) throws JsonMappingException, JsonParseException, IOException { return fromJSON(new StringReader(json)); } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); T fromJSON(String json); @SuppressWarnings("unchecked") T fromJSON(Reader reader); String toJSON(T value); void toJSON(Writer writer, T value); void usePrettyPrinter(); void disablePrettyPrint(); }
AbstractJsonTranslator { public T fromJSON(String json) throws JsonMappingException, JsonParseException, IOException { return fromJSON(new StringReader(json)); } AbstractJsonTranslator(Class<? extends AbstractJsonTranslator<?>> subclass); T fromJSON(String json); @SuppressWarnings("unchecked") T fromJSON(Reader reader); String toJSON(T value); void toJSON(Writer writer, T value); void usePrettyPrinter(); void disablePrettyPrint();  }