Class AbstractSchemaProvider
-
- All Implemented Interfaces:
-
net.corda.schema.common.provider.SchemaProvider
public abstract class AbstractSchemaProvider implements SchemaProvider
-
-
Method Summary
Modifier and Type Method Description abstract String
getResourceRoot()
InputStream
getSchema(@NotNull() String key, @NotNull() Version version)
Retrieve the schema file for a top-level configuration key. InputStream
getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path. -
-
Method Detail
-
getResourceRoot
abstract String getResourceRoot()
-
getSchema
@NotNull() InputStream getSchema(@NotNull() String key, @NotNull() Version version)
Retrieve the schema file for a top-level configuration key.
Note that this does not resolve $ref fields in the schema file. However, these references should point to another file contained in this module, which can then be retrieved with getSchemaFile.
- Parameters:
key
- The top-level configuration key to retrieve schema for.
-
getSchemaFile
@NotNull() InputStream getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path.
This can be used to retrieve files required to resolve $ref fields in the schema.
- Parameters:
fileName
- The file to retrieve.
-
-
-
-