java.lang.Object
org.apache.jena.riot.system.PrefixMapBase
- All Implemented Interfaces:
PrefixMap
- Direct Known Subclasses:
BufferingPrefixMap
,PrefixMapAdapter
,PrefixMapStd
Abstract base implementation of a
PrefixMap
which provides
some implementations of API methods.-
Method Summary
Modifier and TypeMethodDescriptionAbbreviate an IRI and return a pair of prefix and local parts, or null.abbreviate
(String uriStr) Abbreviate an IRI or return nullExpand a prefix named, return null if it can't be expandedExpand a prefix, return null if it can't be expandedvoid
forEach
(BiConsumer<String, String> action) Apply aBiConsumer
<String, String> to each entry in the PrefixMap.Return a fresh copy of the underlying mapping, should be safe to modify unlike the mapping returned fromPrefixMap.getMapping()
void
Add a prefix, overwrites any existing associationvoid
Add a prefix, overwrites any existing associationvoid
putAll
(org.apache.jena.shared.PrefixMapping pmap) Add a prefix, overwrites any existing associationstream()
Return a stream ofPrefixEntry
, pairs of prefix and URI.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jena.riot.system.PrefixMap
add, clear, containsPrefix, delete, get, getMapping, isEmpty, size
-
Method Details
-
getMappingCopy
Description copied from interface:PrefixMap
Return a fresh copy of the underlying mapping, should be safe to modify unlike the mapping returned fromPrefixMap.getMapping()
- Specified by:
getMappingCopy
in interfacePrefixMap
- Returns:
- Copy of the mapping
-
forEach
Description copied from interface:PrefixMap
Apply aBiConsumer
<String, String> to each entry in the PrefixMap. -
stream
Description copied from interface:PrefixMap
Return a stream ofPrefixEntry
, pairs of prefix and URI. -
putAll
Description copied from interface:PrefixMap
Add a prefix, overwrites any existing association -
putAll
Description copied from interface:PrefixMap
Add a prefix, overwrites any existing association -
abbreviate
Description copied from interface:PrefixMap
Abbreviate an IRI or return null- Specified by:
abbreviate
in interfacePrefixMap
- Parameters:
uriStr
- URI to abbreviate- Returns:
- URI in prefixed name form if possible, null otherwise
-
expand
Description copied from interface:PrefixMap
Expand a prefix, return null if it can't be expanded -
abbrev
Description copied from interface:PrefixMap
Abbreviate an IRI and return a pair of prefix and local parts, or null. -
expand
Description copied from interface:PrefixMap
Expand a prefix named, return null if it can't be expanded -
toString
-