Package manifold.api.json.codegen.schema
Class JsonUnionType
- java.lang.Object
-
- manifold.api.json.codegen.schema.JsonSchemaType
-
- manifold.api.json.codegen.JsonStructureType
-
- manifold.api.json.codegen.schema.JsonUnionType
-
- All Implemented Interfaces:
Cloneable,IJsonParentType,IJsonType
public class JsonUnionType extends JsonStructureType
-
-
Field Summary
-
Fields inherited from class manifold.api.json.codegen.schema.JsonSchemaType
FIELD_FILE_URL, FROM_SOURCE_METHOD
-
-
Constructor Summary
Constructors Constructor Description JsonUnionType(JsonSchemaType parent, manifold.api.fs.IFile source, String name, TypeAttributes attr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstituent(String name, IJsonType type)JsonEnumTypegetCollapsedEnumType()Collection<? extends IJsonType>getConstituents()JsonUnionTypemerge(IJsonType type)voidrender(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable)protected voidresolveRefsImpl()-
Methods inherited from class manifold.api.json.codegen.JsonStructureType
addChild, addMember, addRequiredWithTokens, addSourcePositionAnnotation, addSuper, equals, equalsStructurally, findChild, getInnerTypes, getMemberLocations, getMembers, hashCode, isRequired, makeEnumType, toString
-
Methods inherited from class manifold.api.json.codegen.schema.JsonSchemaType
addActualNameAnnotation, addActualNameAnnotation, addFromSourceMethod, addIssue, addRequestMethods, addSourcePositionAnnotation, addTypeReferenceAnnotation, copyWithAttributes, getActualFqn, getConstituentQn, getConstituentQn, getConstituentQnComponent, getDefinitions, getErrorHandler, getFile, getFqn, getFqn, getIdentifier, getIFile, getIssues, getLabel, getLocation, getModule, getName, getParent, getPropertyType, getPropertyType, getTm, getToken, getTypeAttributes, indent, isCollapsedUnionEnum, isParentRoot, isSchemaType, isSyntheticSchema, makeIdentifier, makeMemberIdentifier, makeTypeParameter, mergeInnerTypes, prepareToRender, removeGenerics, renderFileField, renderFileField, renderInner, resolveRefs, setDefinitions, setJsonSchema, setParent, setSyntheticSchema, setTm, setToken
-
-
-
-
Constructor Detail
-
JsonUnionType
public JsonUnionType(JsonSchemaType parent, manifold.api.fs.IFile source, String name, TypeAttributes attr)
-
-
Method Detail
-
resolveRefsImpl
protected void resolveRefsImpl()
- Overrides:
resolveRefsImplin classJsonStructureType
-
getConstituents
public Collection<? extends IJsonType> getConstituents()
-
merge
public JsonUnionType merge(IJsonType type)
- Specified by:
mergein interfaceIJsonType- Overrides:
mergein classJsonStructureType
-
getCollapsedEnumType
public JsonEnumType getCollapsedEnumType()
-
render
public void render(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable)
- Specified by:
renderin interfaceIJsonParentType- Overrides:
renderin classJsonStructureType
-
-