Class PrefixMapSink

java.lang.Object
org.apache.jena.riot.system.PrefixMapNull
org.apache.jena.riot.system.PrefixMapSink
All Implemented Interfaces:
PrefixMap

public class PrefixMapSink extends PrefixMapNull
Empty prefix map that throws away updates.
  • Field Details

  • Method Details

    • add

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

      public void clear()
      Description copied from interface: PrefixMap
      Clear all prefixes.
      Specified by:
      clear in interface PrefixMap
      Overrides:
      clear in class PrefixMapNull
    • toString

      public String toString()
      Overrides:
      toString in class Object