public class JsonListType extends JsonSchemaType
| Constructor and Description |
|---|
JsonListType(String label,
URL source,
JsonSchemaType parent,
TypeAttributes attr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String name,
IJsonParentType type) |
boolean |
equals(Object o) |
boolean |
equalsStructurally(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.
|
IJsonType |
findChild(String name) |
IJsonType |
getComponentType() |
String |
getFqn() |
String |
getIdentifier() |
Map<String,IJsonParentType> |
getInnerTypes() |
String |
getLabel() |
String |
getName() |
int |
hashCode() |
JsonListType |
merge(IJsonType that) |
void |
render(StringBuilder sb,
int indent,
boolean mutable) |
protected void |
resolveRefsImpl() |
void |
setComponentType(IJsonType compType) |
addIssue, copyWithAttributes, getDefinitions, getFile, getIssues, getParent, getTypeAttributes, isParentRoot, isSchemaType, mergeInnerTypes, resolveRefs, setDefinitions, setJsonSchema, setParentpublic JsonListType(String label, URL source, JsonSchemaType parent, TypeAttributes attr)
protected void resolveRefsImpl()
resolveRefsImpl in class JsonSchemaTypepublic String getLabel()
getLabel in class JsonSchemaTypepublic String getName()
getName in interface IJsonTypegetName in class JsonSchemaTypepublic String getIdentifier()
getIdentifier in interface IJsonTypegetIdentifier in class JsonSchemaTypepublic String getFqn()
getFqn in class JsonSchemaTypepublic void addChild(String name, IJsonParentType type)
public IJsonType getComponentType()
public void setComponentType(IJsonType compType)
public Map<String,IJsonParentType> getInnerTypes()
public JsonListType merge(IJsonType that)
public void render(StringBuilder sb, int indent, boolean mutable)
public boolean equalsStructurally(IJsonType o)
IJsonTypepublic boolean equals(Object o)
equals in class JsonSchemaTypepublic int hashCode()
hashCode in class JsonSchemaTypeCopyright © 2019. All rights reserved.