Class PrefixMapStorageSimple

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear the prefix mapping storage.
      boolean containsPrefix​(java.lang.String prefix)
      Return whether the mapping contains an entry for the given prefix.
      java.lang.String get​(java.lang.String prefix)
      Get the URI string associated with a prefix, or return null if there is no association.
      boolean isEmpty()
      Return whether there are any prefix mappings or not.
      java.util.Iterator<PrefixEntry> iterator()
      Iterator over all prefix entries.
      void put​(java.lang.String prefix, java.lang.String uriStr)
      Put a (prefix, uri) pair into the mapping.
      void remove​(java.lang.String prefix)
      Remove the mapping for a prefix.
      int size()
      Return the number of prefix mappings.
      java.util.stream.Stream<PrefixEntry> stream()
      Stream of over all prefix entries.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • PrefixMapStorageSimple

        public PrefixMapStorageSimple()
    • Method Detail

      • put

        public void put​(java.lang.String prefix,
                        java.lang.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 java.lang.String get​(java.lang.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​(java.lang.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​(java.lang.String prefix)
        Description copied from interface: StoragePrefixMap
        Return whether the mapping contains an entry for the given prefix.
        Specified by:
        containsPrefix 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