Package io.apicurio.registry.maven
Class AbstractDirectoryParser<Schema>
java.lang.Object
io.apicurio.registry.maven.AbstractDirectoryParser<Schema>
- Direct Known Subclasses:
AvroDirectoryParser
,JsonSchemaDirectoryParser
,ProtobufDirectoryParser
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDirectoryParser
(io.apicurio.registry.rest.client.RegistryClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected RegisterArtifact
buildFromRoot
(RegisterArtifact rootArtifact, String artifactId) abstract List
<io.apicurio.registry.rest.client.models.ArtifactReference> handleSchemaReferences
(RegisterArtifact rootArtifact, Schema schema, Map<String, io.apicurio.registry.content.TypedContent> fileContents) abstract ParsedDirectoryWrapper
<Schema> protected io.apicurio.registry.content.ContentHandle
readSchemaContent
(File schemaFile) protected io.apicurio.registry.rest.client.models.ArtifactReference
registerNestedSchema
(String referenceName, List<io.apicurio.registry.rest.client.models.ArtifactReference> nestedArtifactReferences, RegisterArtifact nestedSchema, String artifactContent)
-
Constructor Details
-
AbstractDirectoryParser
public AbstractDirectoryParser(io.apicurio.registry.rest.client.RegistryClient client)
-
-
Method Details
-
parse
-
handleSchemaReferences
public abstract List<io.apicurio.registry.rest.client.models.ArtifactReference> handleSchemaReferences(RegisterArtifact rootArtifact, Schema schema, Map<String, io.apicurio.registry.content.TypedContent> fileContents) throws FileNotFoundException, ExecutionException, InterruptedException -
readSchemaContent
-
buildFromRoot
-
registerNestedSchema
protected io.apicurio.registry.rest.client.models.ArtifactReference registerNestedSchema(String referenceName, List<io.apicurio.registry.rest.client.models.ArtifactReference> nestedArtifactReferences, RegisterArtifact nestedSchema, String artifactContent) throws FileNotFoundException, ExecutionException, InterruptedException
-