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(IJsonParentType 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<IJsonParentType> |
getSuperTypes() |
Token |
getToken() |
int |
hashCode() |
void |
render(StringBuilder sb,
int indent,
boolean mutable) |
void |
setToken(Token token) |
String |
toString() |
addIssue, getDefinitions, getFile, getIdentifier, getIssues, getLabel, getName, getParent, isParentRoot, isSchemaType, mergeInnerTypes, setDefinitions, setJsonSchemapublic JsonStructureType(JsonSchemaType parent, URL source, String name)
public String getFqn()
getFqn in class JsonSchemaTypepublic void addSuper(IJsonParentType superType)
public List<IJsonParentType> getSuperTypes()
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.