public interface StoragePrefixMap extends Iterable<PrefixEntry>
| 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.
|
default Stream<String> |
prefixes()
Stream all prefixes.
|
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.
|
forEach, spliteratorvoid put(String prefix, String uriStr)
prefix - Prefix string (without colon).uriStr - URI as a string.String get(String prefix)
prefix - void remove(String prefix)
prefix - The prefix of the mapping to be removed.boolean containsPrefix(String prefix)
void clear()
boolean isEmpty()
int size()
Iterator<PrefixEntry> iterator()
iterator in interface Iterable<PrefixEntry>Stream<PrefixEntry> stream()
Licensed under the Apache License, Version 2.0