Package com.networknt.schema
Class DisallowUnknownJsonMetaSchemaFactory
- java.lang.Object
-
- com.networknt.schema.DisallowUnknownJsonMetaSchemaFactory
-
- All Implemented Interfaces:
JsonMetaSchemaFactory
public class DisallowUnknownJsonMetaSchemaFactory extends Object implements JsonMetaSchemaFactory
AJsonMetaSchemaFactorythat does not meta-schemas that aren't explicitly configured in theJsonSchemaFactory.
-
-
Constructor Summary
Constructors Constructor Description DisallowUnknownJsonMetaSchemaFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisallowUnknownJsonMetaSchemaFactorygetInstance()Gets the instance ofDisallowUnknownJsonMetaSchemaFactory.JsonMetaSchemagetMetaSchema(String iri, JsonSchemaFactory schemaFactory, SchemaValidatorsConfig config)Gets the meta-schema given the IRI.
-
-
-
Method Detail
-
getMetaSchema
public JsonMetaSchema getMetaSchema(String iri, JsonSchemaFactory schemaFactory, SchemaValidatorsConfig config)
Description copied from interface:JsonMetaSchemaFactoryGets the meta-schema given the IRI.- Specified by:
getMetaSchemain interfaceJsonMetaSchemaFactory- Parameters:
iri- the meta-schema IRIschemaFactory- the schema factoryconfig- the config- Returns:
- the meta-schema
-
getInstance
public static DisallowUnknownJsonMetaSchemaFactory getInstance()
Gets the instance ofDisallowUnknownJsonMetaSchemaFactory.- Returns:
- the json meta schema factory
-
-