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 Summary
Constructors Constructor Description JsonSchemaParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringartifactType()io.apicurio.registry.resolver.ParsedSchema<JsonSchema>getSchemaFromData(io.apicurio.registry.resolver.data.Record<T> data)io.apicurio.registry.resolver.ParsedSchema<JsonSchema>getSchemaFromData(io.apicurio.registry.resolver.data.Record<T> data, boolean dereference)JsonSchemaparseSchema(byte[] rawSchema, Map<String,io.apicurio.registry.resolver.ParsedSchema<JsonSchema>> resolvedReferences)booleansupportsExtractSchemaFromData()
-
-
-
Method Detail
-
artifactType
public String artifactType()
- Specified by:
artifactTypein interfaceio.apicurio.registry.resolver.SchemaParser<JsonSchema,T>- See Also:
SchemaParser.artifactType()
-
parseSchema
public JsonSchema parseSchema(byte[] rawSchema, Map<String,io.apicurio.registry.resolver.ParsedSchema<JsonSchema>> resolvedReferences)
- Specified by:
parseSchemain interfaceio.apicurio.registry.resolver.SchemaParser<JsonSchema,T>- See Also:
SchemaParser.parseSchema(byte[])
-
getSchemaFromData
public io.apicurio.registry.resolver.ParsedSchema<JsonSchema> getSchemaFromData(io.apicurio.registry.resolver.data.Record<T> data)
- Specified by:
getSchemaFromDatain interfaceio.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:
getSchemaFromDatain interfaceio.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
-
supportsExtractSchemaFromData
public boolean supportsExtractSchemaFromData()
- Specified by:
supportsExtractSchemaFromDatain interfaceio.apicurio.registry.resolver.SchemaParser<JsonSchema,T>
-
-