Package com.networknt.schema.resource
Class MetaSchemaMapper
- java.lang.Object
-
- com.networknt.schema.resource.MetaSchemaMapper
-
- All Implemented Interfaces:
SchemaMapper
public class MetaSchemaMapper extends java.lang.Object implements SchemaMapper
Maps the JSON Schema meta schema to the class path location.
-
-
Field Summary
Fields Modifier and Type Field Description private static char
ANCHOR
private static java.lang.String
CLASSPATH_PREFIX
private static java.lang.String
HTTP_JSON_SCHEMA_ORG_PREFIX
private static java.lang.String
HTTPS_JSON_SCHEMA_ORG_PREFIX
-
Constructor Summary
Constructors Constructor Description MetaSchemaMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteIri
map(AbsoluteIri absoluteIRI)
Maps an ID indicated by an absolute IRI to a retrieval IRI.
-
-
-
Field Detail
-
ANCHOR
private static final char ANCHOR
- See Also:
- Constant Field Values
-
CLASSPATH_PREFIX
private static final java.lang.String CLASSPATH_PREFIX
- See Also:
- Constant Field Values
-
HTTP_JSON_SCHEMA_ORG_PREFIX
private static final java.lang.String HTTP_JSON_SCHEMA_ORG_PREFIX
- See Also:
- Constant Field Values
-
HTTPS_JSON_SCHEMA_ORG_PREFIX
private static final java.lang.String HTTPS_JSON_SCHEMA_ORG_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
map
public AbsoluteIri map(AbsoluteIri absoluteIRI)
Description copied from interface:SchemaMapper
Maps an ID indicated by an absolute IRI to a retrieval IRI.- Specified by:
map
in interfaceSchemaMapper
- Parameters:
absoluteIRI
- the ID- Returns:
- the retrieval IRI or null if this mapper doesn't support the mapping
-
-