Package com.networknt.schema.resource
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
Apply the mapping function if the predicate is true.- Parameters:
test
- the predicatemappings
- the mapping
-
-
Method Details
-
map
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
-