Package manifold.api.json.codegen
Class JsonListType
- java.lang.Object
-
- manifold.api.json.codegen.schema.JsonSchemaType
-
- manifold.api.json.codegen.JsonListType
-
- All Implemented Interfaces:
Cloneable,IJsonParentType,IJsonType
public class JsonListType extends JsonSchemaType
-
-
Field Summary
-
Fields inherited from class manifold.api.json.codegen.schema.JsonSchemaType
FIELD_FILE_URL, FROM_SOURCE_METHOD
-
-
Constructor Summary
Constructors Constructor Description JsonListType(String label, manifold.api.fs.IFile source, JsonSchemaType parent, TypeAttributes attr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(String name, IJsonParentType type)booleanequals(Object o)booleanequalsStructurally(IJsonType o)JSon Schema types normally compare by identity, however for some use-cases we still need to compare them structurally e.g., for merging types.IJsonTypefindChild(String name)IJsonTypegetComponentType()Map<String,IJsonParentType>getInnerTypes()inthashCode()JsonListTypemerge(IJsonType that)voidrender(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable)protected voidresolveRefsImpl()voidsetComponentType(IJsonType compType)-
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
-
JsonListType
public JsonListType(String label, manifold.api.fs.IFile source, JsonSchemaType parent, TypeAttributes attr)
-
-
Method Detail
-
resolveRefsImpl
protected void resolveRefsImpl()
- Overrides:
resolveRefsImplin classJsonSchemaType
-
addChild
public void addChild(String name, IJsonParentType type)
-
getComponentType
public IJsonType getComponentType()
-
setComponentType
public void setComponentType(IJsonType compType)
-
getInnerTypes
public Map<String,IJsonParentType> getInnerTypes()
-
merge
public JsonListType merge(IJsonType that)
-
render
public void render(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable)
-
equalsStructurally
public boolean equalsStructurally(IJsonType o)
Description copied from interface:IJsonTypeJSon Schema types normally compare by identity, however for some use-cases we still need to compare them structurally e.g., for merging types.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classJsonSchemaType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classJsonSchemaType
-
-