Package com.networknt.schema.resource
Class MapSchemaMapper
- java.lang.Object
-
- com.networknt.schema.resource.MapSchemaMapper
-
- All Implemented Interfaces:
SchemaMapper
public class MapSchemaMapper extends Object implements SchemaMapper
Map implementation ofSchemaMapper
.
-
-
Constructor Summary
Constructors Constructor Description MapSchemaMapper(Function<String,String> mappings)
MapSchemaMapper(Predicate<String> test, Function<String,String> mappings)
Apply the mapping function if the predicate is true.MapSchemaMapper(Map<String,String> mappings)
-
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.
-
-
-
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
-
-