public class JsonStructureType extends JsonSchemaType
| Constructor and Description |
|---|
JsonStructureType(JsonSchemaType parent,
URL source,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String name,
IJsonParentType type) |
void |
addMember(String name,
IJsonType type,
Token token) |
void |
addSuper(IJsonType superType) |
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 |
findMemberType(String name) |
String |
getFqn() |
Map<String,IJsonParentType> |
getInnerTypes() |
Map<String,IJsonType> |
getMembers() |
List<IJsonType> |
getSuperTypes() |
Token |
getToken() |
int |
hashCode() |
void |
render(StringBuilder sb,
int indent,
boolean mutable) |
protected void |
resolveRefsImpl() |
void |
setToken(Token token) |
String |
toString() |
addIssue, getDefinitions, getFile, getIdentifier, getIssues, getLabel, getName, getParent, isParentRoot, isSchemaType, mergeInnerTypes, resolveRefs, setDefinitions, setJsonSchemapublic JsonStructureType(JsonSchemaType parent, URL source, String name)
protected void resolveRefsImpl()
resolveRefsImpl in class JsonSchemaTypepublic String getFqn()
getFqn in class JsonSchemaTypepublic void addSuper(IJsonType superType)
public void addChild(String name, IJsonParentType type)
public Map<String,IJsonParentType> getInnerTypes()
public Token getToken()
public void setToken(Token token)
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 © 2018. All rights reserved.