Class JsonSchemaOutputResolver
java.lang.Object
jakarta.xml.bind.SchemaOutputResolver
org.eclipse.persistence.jaxb.json.JsonSchemaOutputResolver
public abstract class JsonSchemaOutputResolver
extends jakarta.xml.bind.SchemaOutputResolver
PUBLIC:
Purpose:Provides a schema output resolver specifically for Json Schemas. By passing a subclass of JsonSchemaOutputResolver in to the JAXBContext generateSchema method, will indicate that a JsonSchema should be generated instead of an Xml Schema.
- Author:
- mmacivor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Class
Returns the root class of the schema to be generated.Methods inherited from class jakarta.xml.bind.SchemaOutputResolver
createOutput
-
Constructor Details
-
JsonSchemaOutputResolver
public JsonSchemaOutputResolver()
-
-
Method Details
-
getRootClass
Returns the root class of the schema to be generated. Json Schemas only have 1 root level structure, so the class returned from this method will represent the root of the json schema.
-