Package | Description |
---|---|
manifold.api.json | |
manifold.api.json.codegen | |
manifold.api.json.codegen.schema |
Modifier and Type | Method and Description |
---|---|
static IJsonType |
JsonTransformer.mergeTypes(IJsonType type1,
IJsonType type2) |
static IJsonType |
JsonTransformer.mergeTypesNoUnion(IJsonType type1,
IJsonType type2) |
static IJsonType |
JsonTransformer.transformJsonObject(manifold.api.host.IManifoldHost host,
String name,
manifold.api.fs.IFile source,
JsonSchemaType parent,
Object jsonObj) |
static IJsonType |
JsonTransformer.transformJsonObject(manifold.api.host.IManifoldHost host,
String name,
JsonSchemaType parent,
Object jsonObj) |
Modifier and Type | Method and Description |
---|---|
static IJsonType |
JsonTransformer.mergeTypes(IJsonType type1,
IJsonType type2) |
static IJsonType |
JsonTransformer.mergeTypesNoUnion(IJsonType type1,
IJsonType type2) |
Modifier and Type | Interface and Description |
---|---|
interface |
IJsonParentType |
Modifier and Type | Class and Description |
---|---|
class |
DynamicType |
class |
ErrantType |
class |
JsonBasicType |
class |
JsonListType |
class |
JsonStructureType
The main JSON type reflecting name/value pair bindings.
|
Modifier and Type | Method and Description |
---|---|
IJsonType |
DynamicType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
IJsonType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
JsonBasicType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
IJsonParentType.findChild(String name) |
IJsonType |
JsonListType.findChild(String name) |
IJsonType |
JsonStructureType.findChild(String name) |
IJsonType |
JsonListType.getComponentType() |
IJsonType |
DynamicType.merge(IJsonType type) |
IJsonType |
IJsonType.merge(IJsonType type) |
IJsonType |
JsonBasicType.merge(IJsonType that) |
IJsonType |
JsonStructureType.merge(IJsonType that) |
Modifier and Type | Method and Description |
---|---|
default List<IJsonType> |
IJsonType.getDefinitions() |
Map<String,IJsonType> |
JsonStructureType.getMembers() |
Modifier and Type | Method and Description |
---|---|
void |
JsonStructureType.addMember(String name,
IJsonType type,
Token token) |
void |
JsonStructureType.addSuper(IJsonType superType) |
default boolean |
IJsonType.equalsStructurally(IJsonType type2)
JSon Schema types normally compare by identity, however for
some use-cases we still need to compare them structurally e.g.,
for merging types.
|
boolean |
JsonListType.equalsStructurally(IJsonType o) |
boolean |
JsonStructureType.equalsStructurally(IJsonType o) |
IJsonType |
DynamicType.merge(IJsonType type) |
IJsonType |
IJsonType.merge(IJsonType type) |
IJsonType |
JsonBasicType.merge(IJsonType that) |
JsonListType |
JsonListType.merge(IJsonType that) |
IJsonType |
JsonStructureType.merge(IJsonType that) |
void |
JsonListType.setComponentType(IJsonType compType) |
Modifier and Type | Method and Description |
---|---|
protected JsonEnumType |
JsonStructureType.makeEnumType(Collection<? extends IJsonType> types) |
default void |
IJsonType.setDefinitions(List<IJsonType> definitions) |
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 |
JsonFormatType
This type facilitates mapping a Java type to a JSON
"format" type such as "date-time . |
class |
JsonSchemaType
The base JSON Schema type.
|
class |
JsonUnionType |
class |
LazyRefJsonType |
Modifier and Type | Method and Description |
---|---|
IJsonType |
JsonFormatType.copyWithAttributes(TypeAttributes attributes) |
protected IJsonType |
JsonSchemaType.getConstituentQnComponent(IJsonType constituentType) |
IJsonType |
LazyRefJsonType.merge(IJsonType type) |
IJsonType |
JsonEnumType.merge(IJsonType that) |
IJsonType |
LazyRefJsonType.resolve() |
static IJsonType |
JsonSchemaTransformer.transform(manifold.api.host.IManifoldHost host,
String name,
manifold.api.fs.IFile source,
Object jsonValue) |
static IJsonType |
JsonSchemaTransformer.transform(manifold.api.host.IManifoldHost host,
String name,
Object jsonValue) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends IJsonType> |
JsonUnionType.getConstituents() |
List<IJsonType> |
LazyRefJsonType.getDefinitions() |
List<IJsonType> |
JsonSchemaType.getDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
JsonUnionType.addConstituent(String name,
IJsonType type) |
boolean |
LazyRefJsonType.equalsStructurally(IJsonType type2) |
protected String |
JsonSchemaType.getConstituentQn(IJsonType constituentType,
IJsonType propertyType) |
protected String |
JsonSchemaType.getConstituentQn(IJsonType constituentType,
IJsonType propertyType,
boolean param) |
protected IJsonType |
JsonSchemaType.getConstituentQnComponent(IJsonType constituentType) |
protected String |
JsonSchemaType.getPropertyType(IJsonType propertyType) |
protected String |
JsonSchemaType.getPropertyType(IJsonType propertyType,
boolean qualifiedWithMe,
boolean param) |
protected boolean |
JsonSchemaType.isCollapsedUnionEnum(IJsonType type) |
protected String |
JsonSchemaType.makeMemberIdentifier(IJsonType type) |
protected String |
JsonSchemaType.makeTypeParameter(IJsonType type,
boolean qualifiedWithMe,
boolean param) |
IJsonType |
LazyRefJsonType.merge(IJsonType type) |
IJsonType |
JsonEnumType.merge(IJsonType that) |
JsonFormatType |
JsonFormatType.merge(IJsonType type) |
JsonUnionType |
JsonUnionType.merge(IJsonType type) |
Modifier and Type | Method and Description |
---|---|
void |
LazyRefJsonType.setDefinitions(List<IJsonType> definitions) |
void |
JsonSchemaType.setDefinitions(List<IJsonType> definitions) |
Copyright © 2024. All rights reserved.