Class PrefixMapUnmodifiable

java.lang.Object
org.apache.jena.riot.system.PrefixMapWrapper
org.apache.jena.riot.system.PrefixMapUnmodifiable
All Implemented Interfaces:
PrefixMap

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

    • PrefixMapUnmodifiable

      public PrefixMapUnmodifiable(PrefixMap other)
  • Method Details

    • getMapping

      public Map<String,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:
    • add

      public void add(String prefix, 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(PrefixMap pmap)
      Description copied from interface: PrefixMap
      Add a prefix, overwrites any existing association
      Specified by:
      putAll in interface PrefixMap
      Overrides:
      putAll in class PrefixMapWrapper
      Parameters:
      pmap - Prefix Map
    • putAll

      public void putAll(org.apache.jena.shared.PrefixMapping pmap)
      Description copied from interface: PrefixMap
      Add a prefix, overwrites any existing association
      Specified by:
      putAll in interface PrefixMap
      Overrides:
      putAll in class PrefixMapWrapper
      Parameters:
      pmap - Prefix Mapping
    • putAll

      public void putAll(Map<String,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(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