Package org.apache.jena.riot.system
Class PrefixMapUnmodifiable
- java.lang.Object
-
- org.apache.jena.riot.system.PrefixMapWrapper
-
- org.apache.jena.riot.system.PrefixMapUnmodifiable
-
- All Implemented Interfaces:
PrefixMap
public class PrefixMapUnmodifiable extends PrefixMapWrapper
A PrefixMap that traps update operations on a wrapped prefix map
-
-
Constructor Summary
Constructors Constructor Description PrefixMapUnmodifiable(PrefixMap other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String prefix, java.lang.String iriString)Add a prefix, overwrites any existing associationvoiddelete(java.lang.String prefix)Delete a prefixjava.util.Map<java.lang.String,java.lang.String>getMapping()Return the underlying mapping, this is generally unsafe to modify and implementations may opt to return an unmodifiable view of the mapping if they wish.voidputAll(java.util.Map<java.lang.String,java.lang.String> mapping)Add a prefix, overwrites any existing associationvoidputAll(PrefixMap pmap)Add a prefix, overwrites any existing associationvoidputAll(PrefixMapping pmap)Add a prefix, overwrites any existing association-
Methods inherited from class org.apache.jena.riot.system.PrefixMapWrapper
abbrev, abbreviate, clear, containsPrefix, expand, expand, forEach, get, getMappingCopy, isEmpty, size, stream
-
-
-
-
Constructor Detail
-
PrefixMapUnmodifiable
public PrefixMapUnmodifiable(PrefixMap other)
-
-
Method Detail
-
getMapping
public java.util.Map<java.lang.String,java.lang.String> getMapping()
Description copied from interface:PrefixMapReturn the underlying mapping, this is generally unsafe to modify and implementations may opt to return an unmodifiable view of the mapping if they wish.- Specified by:
getMappingin interfacePrefixMap- Overrides:
getMappingin classPrefixMapWrapper- Returns:
- Underlying mapping
- See Also:
PrefixMap.getMappingCopy()
-
add
public void add(java.lang.String prefix, java.lang.String iriString)Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association- Specified by:
addin interfacePrefixMap- Overrides:
addin classPrefixMapWrapper- Parameters:
prefix- PrefixiriString- Namespace IRI
-
putAll
public void putAll(PrefixMap pmap)
Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association- Specified by:
putAllin interfacePrefixMap- Overrides:
putAllin classPrefixMapWrapper- Parameters:
pmap- Prefix Map
-
putAll
public void putAll(PrefixMapping pmap)
Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association- Specified by:
putAllin interfacePrefixMap- Overrides:
putAllin classPrefixMapWrapper- Parameters:
pmap- Prefix Mapping
-
putAll
public void putAll(java.util.Map<java.lang.String,java.lang.String> mapping)
Description copied from interface:PrefixMapAdd a prefix, overwrites any existing association- Specified by:
putAllin interfacePrefixMap- Overrides:
putAllin classPrefixMapWrapper- Parameters:
mapping- A Map of prefix name to IRI string
-
delete
public void delete(java.lang.String prefix)
Description copied from interface:PrefixMapDelete a prefix- Specified by:
deletein interfacePrefixMap- Overrides:
deletein classPrefixMapWrapper- Parameters:
prefix- Prefix to delete
-
-