Class StoragePrefixesView
- java.lang.Object
-
- org.apache.jena.dboe.storage.prefixes.StoragePrefixesView
-
- All Implemented Interfaces:
java.lang.Iterable<PrefixEntry>,StoragePrefixMap
public class StoragePrefixesView extends java.lang.Object implements StoragePrefixMap
Implementation ofStoragePrefixMapoverStoragePrefixes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the prefix mapping storage.booleancontainsPrefix(java.lang.String prefix)Return whether the mapping contains an entry for the given prefix.java.lang.Stringget(java.lang.String 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.java.util.Iterator<PrefixEntry>iterator()Iterator over all prefix entries.voidput(java.lang.String prefix, java.lang.String uriStr)Put a (prefix, uri) pair into the mapping.voidremove(java.lang.String prefix)Remove the mapping for a prefix.intsize()Return the number of prefix mappings.java.util.stream.Stream<PrefixEntry>stream()Stream of over all prefix entries.java.lang.StringtoString()static StoragePrefixMapviewDataset(StoragePrefixes dsgPrefixes)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.dboe.storage.prefixes.StoragePrefixMap
prefixes
-
-
-
-
Method Detail
-
viewDataset
public static StoragePrefixMap viewDataset(StoragePrefixes dsgPrefixes)
-
put
public void put(java.lang.String prefix, java.lang.String uriStr)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
public java.lang.String get(java.lang.String prefix)
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
public boolean containsPrefix(java.lang.String prefix)
Description copied from interface:StoragePrefixMapReturn whether the mapping contains an entry for the given prefix.- Specified by:
containsPrefixin interfaceStoragePrefixMap
-
remove
public void remove(java.lang.String prefix)
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
public java.util.Iterator<PrefixEntry> iterator()
Description copied from interface:StoragePrefixMapIterator over all prefix entries.- Specified by:
iteratorin interfacejava.lang.Iterable<PrefixEntry>- Specified by:
iteratorin interfaceStoragePrefixMap
-
stream
public java.util.stream.Stream<PrefixEntry> stream()
Description copied from interface:StoragePrefixMapStream of over all prefix entries.- Specified by:
streamin interfaceStoragePrefixMap
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-