Class StoragePrefixesSimpleMem
- java.lang.Object
-
- org.apache.jena.dboe.storage.simple.StoragePrefixesSimpleMem
-
- All Implemented Interfaces:
StoragePrefixes
public class StoragePrefixesSimpleMem extends java.lang.Object implements StoragePrefixes
In-memory dataset prefixes
-
-
Constructor Summary
Constructors Constructor Description StoragePrefixesSimpleMem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Node graphNode, java.lang.String prefix, java.lang.String iriStr)Add a prefix, overwrites any existing associationvoiddelete(Node graphNode, java.lang.String prefix)Delete a prefix mappingvoiddeleteAll(Node graphNode)Delete prefix mappings for a specific graph name.java.util.Iterator<PrefixEntry>get(Node graphNode)java.lang.Stringget(Node graphNode, java.lang.String prefix)booleanisEmpty()Return whether there are any prefix mappings or not (any graph).java.util.Iterator<Node>listGraphNodes()intsize()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
-
-
-
-
Method Detail
-
get
public java.lang.String get(Node graphNode, java.lang.String prefix)
- Specified by:
getin interfaceStoragePrefixes
-
get
public java.util.Iterator<PrefixEntry> get(Node graphNode)
- Specified by:
getin interfaceStoragePrefixes
-
listGraphNodes
public java.util.Iterator<Node> listGraphNodes()
- Specified by:
listGraphNodesin interfaceStoragePrefixes
-
add
public void add(Node graphNode, java.lang.String prefix, java.lang.String iriStr)
Add a prefix, overwrites any existing association- Specified by:
addin interfaceStoragePrefixes
-
delete
public void delete(Node graphNode, java.lang.String prefix)
Delete a prefix mapping- Specified by:
deletein interfaceStoragePrefixes
-
deleteAll
public void deleteAll(Node graphNode)
Description copied from interface:StoragePrefixesDelete prefix mappings for a specific graph name.- Specified by:
deleteAllin interfaceStoragePrefixes
-
isEmpty
public boolean isEmpty()
Description copied from interface:StoragePrefixesReturn whether there are any prefix mappings or not (any graph).- Specified by:
isEmptyin interfaceStoragePrefixes
-
size
public int size()
Description copied from interface:StoragePrefixesReturn the number of mappings.- Specified by:
sizein interfaceStoragePrefixes
-
-