com.fasterxml.jackson.module.jsonSchema.factories.AnyVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-jsonSchema Show documentation
Show all versions of jackson-module-jsonSchema Show documentation
Add-on module for Jackson (http://jackson.codehaus.org) to support
JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 generation.
The newest version!
package com.fasterxml.jackson.module.jsonSchema.factories;
import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonAnyFormatVisitor;
import com.fasterxml.jackson.module.jsonSchema.types.AnySchema;
public class AnyVisitor extends JsonAnyFormatVisitor.Base
implements JsonSchemaProducer
{
protected final AnySchema schema;
public AnyVisitor(AnySchema schema) {
this.schema = schema;
}
/*
/*********************************************************************
/* JsonSchemaProducer
/*********************************************************************
*/
@Override
public AnySchema getSchema() {
return schema;
}
/*
/*********************************************************************
/* AnyVisitor: no additional methods...
/*********************************************************************
*/
}