Module org.apache.jena.dboe.storage
Interface StoragePrefixMap
- All Superinterfaces:
Iterable<org.apache.jena.riot.system.PrefixEntry>
- All Known Implementing Classes:
PrefixMapStorageSimple,StoragePrefixesView
Storage-oriented abstraction for one set of prefix mappings.
The API features, such as expanding prefix names. are provided elsewhere.
This interface is just storage of the pairs (prefix, uri string)
-
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.prefixes()Stream all prefixes.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 interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
put
Put a (prefix, uri) pair into the mapping. This replaces any previous mapping for the prefix.- Parameters:
prefix- Prefix string (without colon).uriStr- URI as a string.
-
get
Get the URI string associated with a prefix, or return null if there is no association.- Parameters:
prefix-- Returns:
- String
-
remove
Remove the mapping for a prefix.- Parameters:
prefix- The prefix of the mapping to be removed.
-
containsPrefix
Return whether the mapping contains an entry for the given prefix. -
clear
void clear()Clear the prefix mapping storage. -
isEmpty
boolean isEmpty()Return whether there are any prefix mappings or not. -
size
int size()Return the number of prefix mappings. -
iterator
Iterator<org.apache.jena.riot.system.PrefixEntry> iterator()Iterator over all prefix entries. -
stream
Stream<org.apache.jena.riot.system.PrefixEntry> stream()Stream of over all prefix entries. -
prefixes
Stream all prefixes.
-