Package | Description |
---|---|
manifold.api.json.codegen | |
manifold.api.json.codegen.schema |
Modifier and Type | Class and Description |
---|---|
class |
ErrantType |
Modifier and Type | Class and Description |
---|---|
class |
JsonEnumType
Transform JSON Schema enum to Java enum:
"enum": ["blue", "green", 5, 4.0]
enum Foo implements IBindingType {
blue("blue"),
green("green"),
_5(5),
_4_0(4.0);
private final Object _value;
Foo(Object value) {
_value = value;
}
@Override
public Object toBindingValue() {
return _value;
}
}
When calling
myObj.setFoo(MyObj.Foo.blue) the JSON manifold marshals the value corresponding with
the Java enum const so that the JSON bindings always contains JSON values. |
class |
JsonUnionType |
Copyright © 2024. All rights reserved.