public abstract class JsonSchemaType extends Object implements IJsonParentType, Cloneable
Attention! subclasses must take care to share state with copies.
See the State class below.
| Modifier | Constructor and Description |
|---|---|
protected |
JsonSchemaType(String name,
URL source,
JsonSchemaType parent,
TypeAttributes attr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIssue(JsonIssue issue) |
JsonSchemaType |
copyWithAttributes(TypeAttributes attributes) |
boolean |
equals(Object o) |
List<IJsonType> |
getDefinitions() |
URL |
getFile() |
abstract String |
getFqn() |
String |
getIdentifier() |
List<JsonIssue> |
getIssues() |
String |
getLabel() |
String |
getName() |
JsonSchemaType |
getParent() |
TypeAttributes |
getTypeAttributes() |
int |
hashCode() |
protected boolean |
isParentRoot() |
protected boolean |
isSchemaType() |
protected boolean |
mergeInnerTypes(IJsonParentType other,
IJsonParentType mergedType,
Map<String,IJsonParentType> innerTypes) |
void |
resolveRefs() |
protected void |
resolveRefsImpl() |
void |
setDefinitions(List<IJsonType> definitions) |
protected void |
setJsonSchema() |
void |
setParent(IJsonParentType parent) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChild, findChild, renderequalsStructurally, mergeprotected JsonSchemaType(String name, URL source, JsonSchemaType parent, TypeAttributes attr)
public abstract String getFqn()
public final void resolveRefs()
protected void resolveRefsImpl()
protected boolean isParentRoot()
public URL getFile()
public String getLabel()
public String getIdentifier()
getIdentifier in interface IJsonTypepublic JsonSchemaType getParent()
public void setParent(IJsonParentType parent)
public List<IJsonType> getDefinitions()
getDefinitions in interface IJsonTypepublic void setDefinitions(List<IJsonType> definitions)
setDefinitions in interface IJsonTypeprotected boolean isSchemaType()
protected void setJsonSchema()
public TypeAttributes getTypeAttributes()
getTypeAttributes in interface IJsonTypepublic JsonSchemaType copyWithAttributes(TypeAttributes attributes)
copyWithAttributes in interface IJsonTypeprotected boolean mergeInnerTypes(IJsonParentType other, IJsonParentType mergedType, Map<String,IJsonParentType> innerTypes)
public List<JsonIssue> getIssues()
getIssues in interface IJsonParentTypepublic void addIssue(JsonIssue issue)
addIssue in interface IJsonParentTypeCopyright © 2019. All rights reserved.