Module org.apache.jena.dboe.storage
Class PrefixMapStorageSimple
java.lang.Object
org.apache.jena.dboe.storage.prefixes.PrefixMapStorageSimple
- All Implemented Interfaces:
Iterable<org.apache.jena.riot.system.PrefixEntry>,StoragePrefixMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the prefix mapping storage.booleancontainsPrefix(String prefix) Return whether the mapping contains an entry for the given prefix.Get the URI string associated with a prefix, or return null if there is no association.booleanisEmpty()Return whether there are any prefix mappings or not.Iterator<org.apache.jena.riot.system.PrefixEntry>iterator()Iterator over all prefix entries.voidPut a (prefix, uri) pair into the mapping.voidRemove the mapping for a prefix.intsize()Return the number of prefix mappings.Stream<org.apache.jena.riot.system.PrefixEntry>stream()Stream of over all prefix entries.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.jena.dboe.storage.prefixes.StoragePrefixMap
prefixes
-
Constructor Details
-
PrefixMapStorageSimple
public PrefixMapStorageSimple()
-
-
Method Details
-
put
Description copied from interface:StoragePrefixMapPut a (prefix, uri) pair into the mapping. This replaces any previous mapping for the prefix.- Specified by:
putin interfaceStoragePrefixMap- Parameters:
prefix- Prefix string (without colon).uriStr- URI as a string.
-
get
Description copied from interface:StoragePrefixMapGet the URI string associated with a prefix, or return null if there is no association.- Specified by:
getin interfaceStoragePrefixMap- Returns:
- String
-
remove
Description copied from interface:StoragePrefixMapRemove the mapping for a prefix.- Specified by:
removein interfaceStoragePrefixMap- Parameters:
prefix- The prefix of the mapping to be removed.
-
containsPrefix
Description copied from interface:StoragePrefixMapReturn whether the mapping contains an entry for the given prefix.- Specified by:
containsPrefixin interfaceStoragePrefixMap
-
clear
public void clear()Description copied from interface:StoragePrefixMapClear the prefix mapping storage.- Specified by:
clearin interfaceStoragePrefixMap
-
isEmpty
public boolean isEmpty()Description copied from interface:StoragePrefixMapReturn whether there are any prefix mappings or not.- Specified by:
isEmptyin interfaceStoragePrefixMap
-
size
public int size()Description copied from interface:StoragePrefixMapReturn the number of prefix mappings.- Specified by:
sizein interfaceStoragePrefixMap
-
iterator
Description copied from interface:StoragePrefixMapIterator over all prefix entries.- Specified by:
iteratorin interfaceIterable<org.apache.jena.riot.system.PrefixEntry>- Specified by:
iteratorin interfaceStoragePrefixMap
-
stream
Description copied from interface:StoragePrefixMapStream of over all prefix entries.- Specified by:
streamin interfaceStoragePrefixMap
-