@Test public void testSerializeFloat() throws GDException { String json = floatParameterSchema.serialize(Format.JSON); System.out.println(json); context.assertIsSatisfied(); try { JSONObject jsonObject = new JSONObject(json); System.out.println(jsonObject); } catch (JSONException e) { fail(e.getMessage()); } }
@Override public String serialize(Format format) throws GDException { try { return SerializationUtil.execute(format, mapper -> mapper.writeValueAsString(this)); } catch (SerializationException ex) { throw new GDException(ex.getMessage(), ex); } }
ParameterSchema implements GDPropertyMetadata { @Override public String serialize(Format format) throws GDException { try { return SerializationUtil.execute(format, mapper -> mapper.writeValueAsString(this)); } catch (SerializationException ex) { throw new GDException(ex.getMessage(), ex); } } }
ParameterSchema implements GDPropertyMetadata { @Override public String serialize(Format format) throws GDException { try { return SerializationUtil.execute(format, mapper -> mapper.writeValueAsString(this)); } catch (SerializationException ex) { throw new GDException(ex.getMessage(), ex); } } private  ParameterSchema(String name, Class<?> type, Object defaultValue); }
ParameterSchema implements GDPropertyMetadata { @Override public String serialize(Format format) throws GDException { try { return SerializationUtil.execute(format, mapper -> mapper.writeValueAsString(this)); } catch (SerializationException ex) { throw new GDException(ex.getMessage(), ex); } } private  ParameterSchema(String name, Class<?> type, Object defaultValue); @Override String getName(); @Override Class getType(); @Override String getTypeName(); @Override Number getMinValue(); @Override Number getMaxValue(); @Override Number getDefaultNumberValue(); @Override String getDefaultStringValue(); @Override String[] getValidValues(); @Override String serialize(Format format); @Override String getSerializedNode(String path, Format format); @Override String getPath(boolean isAbsolute); @Override String getPath(); @Override void updatePath(String path); }
ParameterSchema implements GDPropertyMetadata { @Override public String serialize(Format format) throws GDException { try { return SerializationUtil.execute(format, mapper -> mapper.writeValueAsString(this)); } catch (SerializationException ex) { throw new GDException(ex.getMessage(), ex); } } private  ParameterSchema(String name, Class<?> type, Object defaultValue); @Override String getName(); @Override Class getType(); @Override String getTypeName(); @Override Number getMinValue(); @Override Number getMaxValue(); @Override Number getDefaultNumberValue(); @Override String getDefaultStringValue(); @Override String[] getValidValues(); @Override String serialize(Format format); @Override String getSerializedNode(String path, Format format); @Override String getPath(boolean isAbsolute); @Override String getPath(); @Override void updatePath(String path);  }