Class PrefixMapStorageSimple

java.lang.Object
org.apache.jena.dboe.storage.prefixes.PrefixMapStorageSimple
All Implemented Interfaces:
Iterable<org.apache.jena.riot.system.PrefixEntry>, StoragePrefixMap

public class PrefixMapStorageSimple extends Object implements StoragePrefixMap
  • Constructor Details

    • PrefixMapStorageSimple

      public PrefixMapStorageSimple()
  • Method Details

    • put

      public void put(String prefix, String uriStr)
      Description copied from interface: StoragePrefixMap
      Put a (prefix, uri) pair into the mapping. This replaces any previous mapping for the prefix.
      Specified by:
      put in interface StoragePrefixMap
      Parameters:
      prefix - Prefix string (without colon).
      uriStr - URI as a string.
    • get

      public String get(String prefix)
      Description copied from interface: StoragePrefixMap
      Get the URI string associated with a prefix, or return null if there is no association.
      Specified by:
      get in interface StoragePrefixMap
      Returns:
      String
    • remove

      public void remove(String prefix)
      Description copied from interface: StoragePrefixMap
      Remove the mapping for a prefix.
      Specified by:
      remove in interface StoragePrefixMap
      Parameters:
      prefix - The prefix of the mapping to be removed.
    • containsPrefix

      public boolean containsPrefix(String prefix)
      Description copied from interface: StoragePrefixMap
      Return whether the mapping contains an entry for the given prefix.
      Specified by:
      containsPrefix in interface StoragePrefixMap
    • clear

      public void clear()
      Description copied from interface: StoragePrefixMap
      Clear the prefix mapping storage.
      Specified by:
      clear in interface StoragePrefixMap
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: StoragePrefixMap
      Return whether there are any prefix mappings or not.
      Specified by:
      isEmpty in interface StoragePrefixMap
    • size

      public int size()
      Description copied from interface: StoragePrefixMap
      Return the number of prefix mappings.
      Specified by:
      size in interface StoragePrefixMap
    • iterator

      public Iterator<org.apache.jena.riot.system.PrefixEntry> iterator()
      Description copied from interface: StoragePrefixMap
      Iterator over all prefix entries.
      Specified by:
      iterator in interface Iterable<org.apache.jena.riot.system.PrefixEntry>
      Specified by:
      iterator in interface StoragePrefixMap
    • stream

      public Stream<org.apache.jena.riot.system.PrefixEntry> stream()
      Description copied from interface: StoragePrefixMap
      Stream of over all prefix entries.
      Specified by:
      stream in interface StoragePrefixMap