Class MapSchemaMapper

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Function<java.lang.String,​java.lang.String> mappings  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapSchemaMapper​(java.util.function.Function<java.lang.String,​java.lang.String> mappings)  
      MapSchemaMapper​(java.util.function.Predicate<java.lang.String> test, java.util.function.Function<java.lang.String,​java.lang.String> mappings)
      Apply the mapping function if the predicate is true.
      MapSchemaMapper​(java.util.Map<java.lang.String,​java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mappings

        private final java.util.function.Function<java.lang.String,​java.lang.String> mappings
    • Constructor Detail

      • MapSchemaMapper

        public MapSchemaMapper​(java.util.Map<java.lang.String,​java.lang.String> mappings)
      • MapSchemaMapper

        public MapSchemaMapper​(java.util.function.Function<java.lang.String,​java.lang.String> mappings)
      • MapSchemaMapper

        public MapSchemaMapper​(java.util.function.Predicate<java.lang.String> test,
                               java.util.function.Function<java.lang.String,​java.lang.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