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 charANCHORprivate static java.lang.StringCLASSPATH_PREFIXprivate static java.lang.StringHTTP_JSON_SCHEMA_ORG_PREFIXprivate static java.lang.StringHTTPS_JSON_SCHEMA_ORG_PREFIX
-
Constructor Summary
Constructors Constructor Description MetaSchemaMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteIrimap(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:SchemaMapperMaps an ID indicated by an absolute IRI to a retrieval IRI.- Specified by:
mapin interfaceSchemaMapper- Parameters:
absoluteIRI- the ID- Returns:
- the retrieval IRI or null if this mapper doesn't support the mapping
-
-