public class StoragePrefixesView extends Object implements StoragePrefixMap
StoragePrefixMap
over StoragePrefixes.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the prefix mapping storage.
|
boolean |
containsPrefix(String prefix)
Return whether the mapping contains an entry for the given prefix.
|
String |
get(String prefix)
Get the URI string associated with a prefix, or return null if there is no association.
|
boolean |
isEmpty()
Return whether there are any prefix mappings or not.
|
Iterator<PrefixEntry> |
iterator()
Iterator over all prefix entries.
|
void |
put(String prefix,
String uriStr)
Put a (prefix, uri) pair into the mapping.
|
void |
remove(String prefix)
Remove the mapping for a prefix.
|
int |
size()
Return the number of prefix mappings.
|
Stream<PrefixEntry> |
stream()
Stream of over all prefix entries.
|
String |
toString() |
static StoragePrefixMap |
viewDefaultGraph(StoragePrefixes dsgPrefixes) |
static StoragePrefixMap |
viewGraph(StoragePrefixes dsgPrefixes,
Node graphName) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitprefixesforEach, spliteratorpublic static StoragePrefixMap viewDefaultGraph(StoragePrefixes dsgPrefixes)
public static StoragePrefixMap viewGraph(StoragePrefixes dsgPrefixes, Node graphName)
public void put(String prefix, String uriStr)
StoragePrefixMapput in interface StoragePrefixMapprefix - Prefix string (without colon).uriStr - URI as a string.public String get(String prefix)
StoragePrefixMapget in interface StoragePrefixMappublic boolean containsPrefix(String prefix)
StoragePrefixMapcontainsPrefix in interface StoragePrefixMappublic void remove(String prefix)
StoragePrefixMapremove in interface StoragePrefixMapprefix - The prefix of the mapping to be removed.public void clear()
StoragePrefixMapclear in interface StoragePrefixMappublic boolean isEmpty()
StoragePrefixMapisEmpty in interface StoragePrefixMappublic int size()
StoragePrefixMapsize in interface StoragePrefixMappublic Iterator<PrefixEntry> iterator()
StoragePrefixMapiterator in interface Iterable<PrefixEntry>iterator in interface StoragePrefixMappublic Stream<PrefixEntry> stream()
StoragePrefixMapstream in interface StoragePrefixMapLicensed under the Apache License, Version 2.0