| 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,
java.lang.String name,
manifold.api.fs.IFile source,
JsonSchemaType parent,
java.lang.Object jsonObj) |
static IJsonType |
JsonTransformer.transformJsonObject(manifold.api.host.IManifoldHost host,
java.lang.String name,
JsonSchemaType parent,
java.lang.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 |
JsonBasicType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
IJsonType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
DynamicType.copyWithAttributes(TypeAttributes attributes) |
IJsonType |
JsonStructureType.findChild(java.lang.String name) |
IJsonType |
JsonListType.findChild(java.lang.String name) |
IJsonType |
IJsonParentType.findChild(java.lang.String name) |
IJsonType |
JsonListType.getComponentType() |
IJsonType |
JsonStructureType.merge(IJsonType that) |
IJsonType |
JsonBasicType.merge(IJsonType that) |
IJsonType |
IJsonType.merge(IJsonType type) |
IJsonType |
DynamicType.merge(IJsonType type) |
| Modifier and Type | Method and Description |
|---|---|
default java.util.List<IJsonType> |
IJsonType.getDefinitions() |
java.util.Map<java.lang.String,IJsonType> |
JsonStructureType.getMembers() |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonStructureType.addMember(java.lang.String name,
IJsonType type,
Token token) |
void |
JsonStructureType.addSuper(IJsonType superType) |
boolean |
JsonStructureType.equalsStructurally(IJsonType o) |
boolean |
JsonListType.equalsStructurally(IJsonType o) |
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.
|
IJsonType |
JsonStructureType.merge(IJsonType that) |
JsonListType |
JsonListType.merge(IJsonType that) |
IJsonType |
JsonBasicType.merge(IJsonType that) |
IJsonType |
IJsonType.merge(IJsonType type) |
IJsonType |
DynamicType.merge(IJsonType type) |
void |
JsonListType.setComponentType(IJsonType compType) |
| Modifier and Type | Method and Description |
|---|---|
protected JsonEnumType |
JsonStructureType.makeEnumType(java.util.Collection<? extends IJsonType> types) |
default void |
IJsonType.setDefinitions(java.util.List<IJsonType> definitions) |
| Modifier and Type | Class and Description |
|---|---|
class |
JsonEnumType
Transform JSON Schema enum to Java enum:
|
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,
java.lang.String name,
manifold.api.fs.IFile source,
java.lang.Object jsonValue) |
static IJsonType |
JsonSchemaTransformer.transform(manifold.api.host.IManifoldHost host,
java.lang.String name,
java.lang.Object jsonValue) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<? extends IJsonType> |
JsonUnionType.getConstituents() |
java.util.List<IJsonType> |
LazyRefJsonType.getDefinitions() |
java.util.List<IJsonType> |
JsonSchemaType.getDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonUnionType.addConstituent(java.lang.String name,
IJsonType type) |
boolean |
LazyRefJsonType.equalsStructurally(IJsonType type2) |
protected java.lang.String |
JsonSchemaType.getConstituentQn(IJsonType constituentType,
IJsonType propertyType) |
protected java.lang.String |
JsonSchemaType.getConstituentQn(IJsonType constituentType,
IJsonType propertyType,
boolean param) |
protected IJsonType |
JsonSchemaType.getConstituentQnComponent(IJsonType constituentType) |
protected java.lang.String |
JsonSchemaType.getPropertyType(IJsonType propertyType) |
protected java.lang.String |
JsonSchemaType.getPropertyType(IJsonType propertyType,
boolean qualifiedWithMe,
boolean param) |
protected boolean |
JsonSchemaType.isCollapsedUnionEnum(IJsonType type) |
protected java.lang.String |
JsonSchemaType.makeMemberIdentifier(IJsonType type) |
protected java.lang.String |
JsonSchemaType.makeTypeParameter(IJsonType type,
boolean qualifiedWithMe,
boolean param) |
IJsonType |
LazyRefJsonType.merge(IJsonType type) |
JsonUnionType |
JsonUnionType.merge(IJsonType type) |
JsonFormatType |
JsonFormatType.merge(IJsonType type) |
IJsonType |
JsonEnumType.merge(IJsonType that) |
| Modifier and Type | Method and Description |
|---|---|
void |
LazyRefJsonType.setDefinitions(java.util.List<IJsonType> definitions) |
void |
JsonSchemaType.setDefinitions(java.util.List<IJsonType> definitions) |
Copyright © 2021. All rights reserved.