Class StoragePrefixesSimpleMem

java.lang.Object
org.apache.jena.dboe.storage.simple.StoragePrefixesSimpleMem
All Implemented Interfaces:
StoragePrefixes

public class StoragePrefixesSimpleMem extends Object implements StoragePrefixes
In-memory dataset prefixes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.apache.jena.graph.Node graphNode, String prefix, String iriStr)
    Add a prefix, overwrites any existing association
    void
    delete(org.apache.jena.graph.Node graphNode, String prefix)
    Delete a prefix mapping
    void
    deleteAll(org.apache.jena.graph.Node graphNode)
    Delete prefix mappings for a specific graph name.
    Iterator<org.apache.jena.riot.system.PrefixEntry>
    get(org.apache.jena.graph.Node graphNode)
     
    get(org.apache.jena.graph.Node graphNode, String prefix)
     
    boolean
    Return whether there are any prefix mappings or not (any graph).
    Iterator<org.apache.jena.graph.Node>
     
    int
    Return the number of mappings.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.dboe.storage.StoragePrefixes

    listMappings
  • Constructor Details

    • StoragePrefixesSimpleMem

      public StoragePrefixesSimpleMem()
  • Method Details

    • get

      public String get(org.apache.jena.graph.Node graphNode, String prefix)
      Specified by:
      get in interface StoragePrefixes
    • get

      public Iterator<org.apache.jena.riot.system.PrefixEntry> get(org.apache.jena.graph.Node graphNode)
      Specified by:
      get in interface StoragePrefixes
    • listGraphNodes

      public Iterator<org.apache.jena.graph.Node> listGraphNodes()
      Specified by:
      listGraphNodes in interface StoragePrefixes
    • add

      public void add(org.apache.jena.graph.Node graphNode, String prefix, String iriStr)
      Add a prefix, overwrites any existing association
      Specified by:
      add in interface StoragePrefixes
    • delete

      public void delete(org.apache.jena.graph.Node graphNode, String prefix)
      Delete a prefix mapping
      Specified by:
      delete in interface StoragePrefixes
    • deleteAll

      public void deleteAll(org.apache.jena.graph.Node graphNode)
      Description copied from interface: StoragePrefixes
      Delete prefix mappings for a specific graph name.
      Specified by:
      deleteAll in interface StoragePrefixes
    • isEmpty

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

      public int size()
      Description copied from interface: StoragePrefixes
      Return the number of mappings.
      Specified by:
      size in interface StoragePrefixes