Package com.networknt.schema
Class Specification
- java.lang.Object
-
- com.networknt.schema.Specification
-
public class Specification extends Object
The version of the JSON Schema specification that defines the standard dialects.
-
-
Constructor Summary
Constructors Constructor Description Specification()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DialectgetDialect(SpecificationVersion version)Gets the standard dialect given the specification version.static DialectgetDialect(String dialectId)Gets the standard dialect given the dialect id.
-
-
-
Method Detail
-
getDialect
public static Dialect getDialect(SpecificationVersion version)
Gets the standard dialect given the specification version.This should only be used if the standard dialect is required, otherwise the dialect should be retrieved from the dialect registry.
- Parameters:
version- the schema specification version- Returns:
- the dialect or null if not found
-
getDialect
public static Dialect getDialect(String dialectId)
Gets the standard dialect given the dialect id.This should only be used if the standard dialect is required, otherwise the dialect should be retrieved from the dialect registry.
- Parameters:
dialectId- the schema specification version- Returns:
- the dialect or null if not found
-
-