Class JsonSchemaGenerator

  • All Implemented Interfaces:
    ModelloGenerator, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

    public final class JsonSchemaGenerator
    extends AbstractXmlJavaGenerator
    Since:
    1.8
    • Constructor Detail

      • JsonSchemaGenerator

        public JsonSchemaGenerator()
    • Method Detail

      • generateJsonSchema

        private void generateJsonSchema​(java.util.Properties parameters)
                                 throws java.io.IOException,
                                        ModelloException
        Throws:
        java.io.IOException
        ModelloException
      • writeClassDocumentation

        private void writeClassDocumentation​(com.fasterxml.jackson.core.JsonGenerator generator,
                                             ModelClass modelClass,
                                             boolean isRoot)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeDescriptionField

        private static void writeDescriptionField​(com.fasterxml.jackson.core.JsonGenerator generator,
                                                  java.lang.String description)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTypeField

        private void writeTypeField​(com.fasterxml.jackson.core.JsonGenerator generator,
                                    java.lang.String type)
                             throws java.io.IOException
        Throws:
        java.io.IOException