Package com.networknt.schema.resource
Class MapSchemaMapper
java.lang.Object
com.networknt.schema.resource.MapSchemaMapper
- All Implemented Interfaces:
SchemaMapper
Map implementation of
SchemaMapper.-
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.
-
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: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
-