Class PrefixMapUnmodifiable

  • All Implemented Interfaces:
    PrefixMap

    public class PrefixMapUnmodifiable
    extends PrefixMapWrapper
    A PrefixMap that traps update operations on a wrapped prefix map
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String prefix, java.lang.String iriString)
      Add a prefix, overwrites any existing association
      void delete​(java.lang.String prefix)
      Delete a prefix
      java.util.Map<java.lang.String,​java.lang.String> getMapping()
      Return the underlying mapping, this is generally unsafe to modify and implementations may opt to return an unmodifiable view of the mapping if they wish.
      void putAll​(java.util.Map<java.lang.String,​java.lang.String> mapping)
      Add a prefix, overwrites any existing association
      void putAll​(PrefixMap pmap)
      Add a prefix, overwrites any existing association
      void putAll​(PrefixMapping pmap)
      Add a prefix, overwrites any existing association
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrefixMapUnmodifiable

        public PrefixMapUnmodifiable​(PrefixMap other)
    • Method Detail

      • getMapping

        public java.util.Map<java.lang.String,​java.lang.String> getMapping()
        Description copied from interface: PrefixMap
        Return the underlying mapping, this is generally unsafe to modify and implementations may opt to return an unmodifiable view of the mapping if they wish.
        Specified by:
        getMapping in interface PrefixMap
        Overrides:
        getMapping in class PrefixMapWrapper
        Returns:
        Underlying mapping
        See Also:
        PrefixMap.getMappingCopy()
      • add

        public void add​(java.lang.String prefix,
                        java.lang.String iriString)
        Description copied from interface: PrefixMap
        Add a prefix, overwrites any existing association
        Specified by:
        add in interface PrefixMap
        Overrides:
        add in class PrefixMapWrapper
        Parameters:
        prefix - Prefix
        iriString - Namespace IRI
      • putAll

        public void putAll​(java.util.Map<java.lang.String,​java.lang.String> mapping)
        Description copied from interface: PrefixMap
        Add a prefix, overwrites any existing association
        Specified by:
        putAll in interface PrefixMap
        Overrides:
        putAll in class PrefixMapWrapper
        Parameters:
        mapping - A Map of prefix name to IRI string
      • delete

        public void delete​(java.lang.String prefix)
        Description copied from interface: PrefixMap
        Delete a prefix
        Specified by:
        delete in interface PrefixMap
        Overrides:
        delete in class PrefixMapWrapper
        Parameters:
        prefix - Prefix to delete