Class MapSchemaMapper

    • Constructor Detail

      • MapSchemaMapper

        public MapSchemaMapper​(Map<String,​String> mappings)
      • MapSchemaMapper

        public MapSchemaMapper​(Predicate<String> test,
                               Function<String,​String> mappings)
        Apply the mapping function if the predicate is true.
        Parameters:
        test - the predicate
        mappings - the mapping
    • 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 interface SchemaMapper
        Parameters:
        absoluteIRI - the ID
        Returns:
        the retrieval IRI or null if this mapper doesn't support the mapping