Package com.networknt.schema.dialect
Class DefaultDialectRegistry
- java.lang.Object
-
- com.networknt.schema.dialect.AbstractDialectRegistry
-
- com.networknt.schema.dialect.BasicDialectRegistry
-
- com.networknt.schema.dialect.DefaultDialectRegistry
-
- All Implemented Interfaces:
DialectRegistry
public class DefaultDialectRegistry extends BasicDialectRegistry
DefaultDialectRegistry.
-
-
Field Summary
-
Fields inherited from class com.networknt.schema.dialect.BasicDialectRegistry
dialects
-
-
Constructor Summary
Constructors Constructor Description DefaultDialectRegistry()DefaultDialectRegistry(Dialect dialect)DefaultDialectRegistry(Collection<Dialect> dialects)DefaultDialectRegistry(Function<String,Dialect> dialects)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DialectgetDialect(String dialectId, SchemaRegistry schemaFactory)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.static DefaultDialectRegistrygetInstance()-
Methods inherited from class com.networknt.schema.dialect.AbstractDialectRegistry
loadDialect, loadDialectBuilder
-
-
-
-
Constructor Detail
-
DefaultDialectRegistry
public DefaultDialectRegistry()
-
DefaultDialectRegistry
public DefaultDialectRegistry(Dialect dialect)
-
DefaultDialectRegistry
public DefaultDialectRegistry(Collection<Dialect> dialects)
-
-
Method Detail
-
getDialect
public Dialect getDialect(String dialectId, SchemaRegistry schemaFactory)
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.- Specified by:
getDialectin interfaceDialectRegistry- Overrides:
getDialectin classBasicDialectRegistry- 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 dialectschemaFactory- the schema registry to fetch and load unknown dialect's meta-schema- Returns:
- the dialect
-
getInstance
public static DefaultDialectRegistry getInstance()
-
-