public class Schema extends Object
| Constructor and Description |
|---|
Schema(URI id,
com.fasterxml.jackson.databind.JsonNode content,
Schema parent) |
| Modifier and Type | Method and Description |
|---|---|
Schema |
deriveChildSchema(com.fasterxml.jackson.databind.JsonNode content)
Derive a schema with
content and this schema as parent. |
com.fasterxml.jackson.databind.JsonNode |
getContent() |
URI |
getId() |
com.sun.codemodel.JType |
getJavaType() |
Schema |
getParent() |
boolean |
isGenerated() |
void |
setJavaType(com.sun.codemodel.JType javaType) |
void |
setJavaTypeIfEmpty(com.sun.codemodel.JType javaType) |
public com.sun.codemodel.JType getJavaType()
public void setJavaType(com.sun.codemodel.JType javaType)
public void setJavaTypeIfEmpty(com.sun.codemodel.JType javaType)
public URI getId()
public com.fasterxml.jackson.databind.JsonNode getContent()
public Schema getParent()
public boolean isGenerated()
public Schema deriveChildSchema(com.fasterxml.jackson.databind.JsonNode content)
content and this schema as parent.
It will keep the same ID as the parent schema.
This method is a no-op if content == this.content.
content - the content of the child schemathis schema if content
didn't changeCopyright © 2019. All rights reserved.