Package com.networknt.schema.dialect
Class BasicDialectRegistry
java.lang.Object
com.networknt.schema.dialect.AbstractDialectRegistry
com.networknt.schema.dialect.BasicDialectRegistry
- All Implemented Interfaces:
DialectRegistry
- Direct Known Subclasses:
DefaultDialectRegistry
Basic
DialectRegistry.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasicDialectRegistry(Dialect dialect) BasicDialectRegistry(Collection<Dialect> dialects) BasicDialectRegistry(Function<String, Dialect> dialects) -
Method Summary
Modifier and TypeMethodDescriptiongetDialect(String dialectId, SchemaRegistry schemaRegistry) Gets the dialect given the dialect id which is the IRI that indicates the meta-schema that can be used to validate the schema conforms to the dialect.Methods inherited from class com.networknt.schema.dialect.AbstractDialectRegistry
loadDialect, loadDialectBuilder
-
Field Details
-
dialects
-
-
Constructor Details
-
BasicDialectRegistry
protected BasicDialectRegistry() -
BasicDialectRegistry
-
BasicDialectRegistry
-
BasicDialectRegistry
-
-
Method Details
-
getDialect
Description copied from interface:DialectRegistryGets the dialect given the dialect id which is the IRI that indicates the meta-schema that can be used to validate the schema conforms to the dialect.- Parameters:
dialectId- the dialect id of the dialect which IRI that indicates the meta-schema that can be used to validate the schema conforms to the dialectschemaRegistry- the schema registry to fetch and load unknown dialect's meta-schema- Returns:
- the dialect
-