Module org.apache.jena.dboe.storage
Class StoragePrefixesView
java.lang.Object
org.apache.jena.dboe.storage.prefixes.StoragePrefixesView
- All Implemented Interfaces:
Iterable<org.apache.jena.riot.system.PrefixEntry>,StoragePrefixMap
Implementation of
StoragePrefixMap
over StoragePrefixes.-
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.static StoragePrefixMapinternal_viewDefaultGraph(StoragePrefixes dsgPrefixes) static StoragePrefixMapinternal_viewGraph(StoragePrefixes dsgPrefixes, org.apache.jena.graph.Node graphName) 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.toString()static StoragePrefixMapviewDataset(StoragePrefixes dsgPrefixes) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.jena.dboe.storage.prefixes.StoragePrefixMap
prefixes
-
Method Details
-
viewDataset
-
internal_viewDefaultGraph
-
internal_viewGraph
public static StoragePrefixMap internal_viewGraph(StoragePrefixes dsgPrefixes, org.apache.jena.graph.Node graphName) -
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
-
containsPrefix
Description copied from interface:StoragePrefixMapReturn whether the mapping contains an entry for the given prefix.- Specified by:
containsPrefixin interfaceStoragePrefixMap
-
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.
-
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
-
toString
-