Class PrefixMapSink

  • All Implemented Interfaces:
    PrefixMap

    public class PrefixMapSink
    extends PrefixMapNull
    Empty prefix map that throws away updates.
    • Method Detail

      • add

        public void add​(java.lang.String prefix,
                        java.lang.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​(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 PrefixMapNull
        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 PrefixMapNull
        Parameters:
        prefix - Prefix to delete
      • toString

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