Module org.apache.jena.dboe.storage
Class PrefixMapStorageSimple
java.lang.Object
org.apache.jena.dboe.storage.prefixes.PrefixMapStorageSimple
- All Implemented Interfaces:
Iterable<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()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()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<PrefixEntry>- Specified by:
iteratorin interfaceStoragePrefixMap
-
stream
Description copied from interface:StoragePrefixMapStream of over all prefix entries.- Specified by:
streamin interfaceStoragePrefixMap
-