Class StoragePrefixesView

    • 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
      • 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
      • 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.
      • isEmpty

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object