Class MapSchemaMapper
java.lang.Object
com.networknt.schema.resource.MapSchemaMapper
- All Implemented Interfaces:
SchemaMapper
Map implementation of
SchemaMapper.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapSchemaMapper(Function<String, String> mappings) Apply the mapping function if the predicate is true.MapSchemaMapper(Map<String, String> mappings) -
Method Summary
Modifier and TypeMethodDescriptionmap(AbsoluteIri absoluteIRI) Maps an ID indicated by an absolute IRI to a retrieval IRI.
-
Field Details
-
mappings
-
-
Constructor Details
-
MapSchemaMapper
-
MapSchemaMapper
-
MapSchemaMapper
-
-
Method Details
-
map
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
-