Class MembershipSchemaProviderImpl
-
- All Implemented Interfaces:
-
net.corda.schema.membership.provider.MembershipSchemaProvider
public class MembershipSchemaProviderImpl implements MembershipSchemaProvider
-
-
Constructor Summary
Constructors Constructor Description MembershipSchemaProviderImpl()
-
Method Summary
Modifier and Type Method Description InputStream
getSchema(@NotNull() MembershipSchema schema, @NotNull() Version version)
Retrieve the schema file for a membership schema. InputStream
getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path. -
-
Method Detail
-
getSchema
@NotNull() InputStream getSchema(@NotNull() MembershipSchema schema, @NotNull() Version version)
Retrieve the schema file for a membership schema.
NOTE: This does not resolve $ref fields in the schema file.
- Parameters:
schema
- The membership schema to retrieve.version
- The version of the membership schema to retrieve.
-
getSchemaFile
@NotNull() InputStream getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path.
NOTE: This can be used to retrieve files required to resolve $ref fields in the schema.
- Parameters:
fileName
- The file to retrieve.
-
-
-
-