public interface PrefixMapI extends Iterable<PrefixEntry>
See StoragePrefixMap for the storage implementation view.
See PrefixMapBase for an implementation over StoragePrefixMap
| Modifier and Type | Method and Description |
|---|---|
default org.apache.jena.atlas.lib.Pair<String,String> |
abbrev(String uriStr)
Abbreviate an IRI or return null
|
default String |
abbreviate(String uriStr)
Abbreviate an IRI or return null
|
void |
add(String prefix,
String iriString)
Add a prefix, overwrites any existing association
|
void |
clear()
Clear the prefix mappings.
|
boolean |
containPrefix(String prefix) |
void |
delete(String prefix)
Delete a prefix
|
default String |
expand(String prefixedName)
Expand a prefixed name, return null if it can't be expanded
|
default String |
expand(String prefix,
String localName)
Expand a prefix, return null if it can't be expanded
|
void |
forEach(BiConsumer<String,String> action)
Apply a
BiConsumer<String, String> to each entry in the PrefixMap. |
String |
get(String prefix)
Get the mapping for a prefix (or return null).
|
Map<String,String> |
getMapping()
returns the underlying mapping - do not modify
|
Map<String,String> |
getMappingCopy()
returns a copy of the underlying mapping
|
StoragePrefixMap |
getPrefixMapStorage() |
boolean |
isEmpty()
Return whether there are any prefix mappings or not.
|
default Iterator<PrefixEntry> |
iterator()
Iterator over all prefix entries.
|
default Stream<String> |
prefixes()
Stream all prefixes.
|
void |
putAll(PrefixMapI pmap)
Add a prefix, overwrites any existing association
|
int |
size()
Return the number of mappings.
|
Stream<PrefixEntry> |
stream()
Stream of over all prefix entries.
|
forEach, spliteratorStoragePrefixMap getPrefixMapStorage()
void putAll(PrefixMapI pmap)
void delete(String prefix)
void clear()
boolean containPrefix(String prefix)
default org.apache.jena.atlas.lib.Pair<String,String> abbrev(String uriStr)
default String expand(String prefixedName)
default String expand(String prefix, String localName)
default Iterator<PrefixEntry> iterator()
iterator in interface Iterable<PrefixEntry>void forEach(BiConsumer<String,String> action)
BiConsumer<String, String> to each entry in the PrefixMap.Stream<PrefixEntry> stream()
boolean isEmpty()
int size()
Licensed under the Apache License, Version 2.0