public class JsonUnionType extends JsonStructureType
FIELD_FILE_URL, FROM_SOURCE_METHOD
Constructor and Description |
---|
JsonUnionType(JsonSchemaType parent,
manifold.api.fs.IFile source,
String name,
TypeAttributes attr) |
Modifier and Type | Method and Description |
---|---|
void |
addConstituent(String name,
IJsonType type) |
JsonEnumType |
getCollapsedEnumType() |
Collection<? extends IJsonType> |
getConstituents() |
JsonUnionType |
merge(IJsonType type) |
void |
render(AbstractJsonTypeManifold tm,
StringBuilder sb,
int indent,
boolean mutable) |
protected void |
resolveRefsImpl() |
addChild, addMember, addRequiredWithTokens, addSourcePositionAnnotation, addSuper, equals, equalsStructurally, findChild, getInnerTypes, getMemberLocations, getMembers, hashCode, isRequired, makeEnumType, toString
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
public JsonUnionType(JsonSchemaType parent, manifold.api.fs.IFile source, String name, TypeAttributes attr)
protected void resolveRefsImpl()
resolveRefsImpl
in class JsonStructureType
public Collection<? extends IJsonType> getConstituents()
public JsonUnionType merge(IJsonType type)
merge
in interface IJsonType
merge
in class JsonStructureType
public JsonEnumType getCollapsedEnumType()
public void render(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable)
render
in interface IJsonParentType
render
in class JsonStructureType
Copyright © 2024. All rights reserved.