EclipseLink 2.5.3, build 'v20180808-e38c757' API Reference

org.eclipse.persistence.jaxb.json
Class JsonSchemaOutputResolver

java.lang.Object
  extended by javax.xml.bind.SchemaOutputResolver
      extended by org.eclipse.persistence.jaxb.json.JsonSchemaOutputResolver

public abstract class JsonSchemaOutputResolver
extends 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
JsonSchemaOutputResolver()
           
 
Method Summary
abstract  java.lang.Class getRootClass()
          Returns the root class of the schema to be generated.
 
Methods inherited from class javax.xml.bind.SchemaOutputResolver
createOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonSchemaOutputResolver

public JsonSchemaOutputResolver()
Method Detail

getRootClass

public abstract java.lang.Class 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.


EclipseLink 2.5.3, build 'v20180808-e38c757' API Reference