@Test public void testBundle() { Assert.assertTrue(ConstraintsConverter.newBundle().getSupportedJavaConstraints().contains(Preserve.class)); Assert.assertTrue(ConstraintsConverter.newBundle().getSupportedJSONConstraints().contains(new PreserveConverter().getJSONId())); }
@Override public String getJSONId() { return "preserve"; }
PreserveConverter implements ConstraintConverter<Preserve> { @Override public String getJSONId() { return "preserve"; } }
PreserveConverter implements ConstraintConverter<Preserve> { @Override public String getJSONId() { return "preserve"; }  }
PreserveConverter implements ConstraintConverter<Preserve> { @Override public String getJSONId() { return "preserve"; }  @Override Class<Preserve> getSupportedConstraint(); @Override String getJSONId(); @Override Preserve fromJSON(Model mo, JSONObject o); @Override JSONObject toJSON(Preserve o); }
PreserveConverter implements ConstraintConverter<Preserve> { @Override public String getJSONId() { return "preserve"; }  @Override Class<Preserve> getSupportedConstraint(); @Override String getJSONId(); @Override Preserve fromJSON(Model mo, JSONObject o); @Override JSONObject toJSON(Preserve o);  }