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 and Type | Field and Description |
|---|---|
protected static String |
FIELD_FILE_URL |
| Modifier | Constructor and Description |
|---|---|
protected |
JsonSchemaType(String name,
URL source,
JsonSchemaType parent,
TypeAttributes attr) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChild, findChild, renderequalsStructurally, mergeprotected static final String FIELD_FILE_URL
protected JsonSchemaType(String name, URL source, JsonSchemaType parent, TypeAttributes attr)
public 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 Token getToken()
public void setToken(Token token)
public 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 IJsonParentTypeprotected void indent(StringBuilder sb, int indent)
protected void addTypeReferenceAnnotation(StringBuilder sb, int indent, JsonSchemaType type)
protected boolean addSourcePositionAnnotation(StringBuilder sb, int indent, String name, Token token)
protected String addActualNameAnnotation(StringBuilder sb, int indent, String name, boolean capitalize)
protected void renderFileField(StringBuilder sb, int indent)
protected void renderFileField(StringBuilder sb, int indent, String modifiers)
protected String getPropertyType(IJsonType propertyType, boolean qualifiedWithMe, boolean param)
protected String getConstituentQn(IJsonType constituentType, IJsonType propertyType)
protected String getConstituentQn(IJsonType constituentType, IJsonType propertyType, boolean param)
protected boolean isCollapsedUnionEnum(IJsonType type)
Copyright © 2019. All rights reserved.