Class JsonSchemaParser<T>

java.lang.Object
io.apicurio.registry.serde.jsonschema.JsonSchemaParser<T>
All Implemented Interfaces:
io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>

public class JsonSchemaParser<T> extends Object implements io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
  • Constructor Details

    • JsonSchemaParser

      public JsonSchemaParser()
  • Method Details

    • artifactType

      public String artifactType()
      Specified by:
      artifactType in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
      See Also:
    • parseSchema

      public JsonSchema parseSchema(byte[] rawSchema, Map<String,io.apicurio.registry.resolver.ParsedSchema<JsonSchema>> resolvedReferences)
      Specified by:
      parseSchema in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
      See Also:
    • getSchemaFromData

      public io.apicurio.registry.resolver.ParsedSchema<JsonSchema> getSchemaFromData(io.apicurio.registry.resolver.data.Record<T> data)
      Specified by:
      getSchemaFromData in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
      See Also:
      • io.apicurio.registry.resolver.SchemaParser#getSchemaFromData(java.lang.Object)
    • getSchemaFromData

      public io.apicurio.registry.resolver.ParsedSchema<JsonSchema> getSchemaFromData(io.apicurio.registry.resolver.data.Record<T> data, boolean dereference)
      Specified by:
      getSchemaFromData in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
    • getSchemaFromLocation

      public io.apicurio.registry.resolver.ParsedSchema<JsonSchema> getSchemaFromLocation(String location)
      Specified by:
      getSchemaFromLocation in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
    • supportsExtractSchemaFromData

      public boolean supportsExtractSchemaFromData()
      Specified by:
      supportsExtractSchemaFromData in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
    • supportsGetSchemaFromLocation

      public boolean supportsGetSchemaFromLocation()
      Specified by:
      supportsGetSchemaFromLocation in interface io.apicurio.registry.resolver.SchemaParser<JsonSchema,T>