Class PrefixSchemaMapper

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String replacement  
      private java.lang.String source  
    • Constructor Summary

      Constructors 
      Constructor Description
      PrefixSchemaMapper​(java.lang.String source, java.lang.String replacement)  
    • 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

      • source

        private final java.lang.String source
      • replacement

        private final java.lang.String replacement
    • Constructor Detail

      • PrefixSchemaMapper

        public PrefixSchemaMapper​(java.lang.String source,
                                  java.lang.String replacement)
    • 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