public class PrefixMapUnmodifiable extends PrefixMapWrapper
Constructor and Description |
---|
PrefixMapUnmodifiable(PrefixMap other) |
Modifier and Type | Method and Description |
---|---|
void |
add(String prefix,
org.apache.jena.iri.IRI iri)
Add a prefix, overwrites any existing association
|
void |
add(String prefix,
String iriString)
Add a prefix, overwrites any existing association
|
void |
delete(String prefix)
Delete a prefix
|
Map<String,org.apache.jena.iri.IRI> |
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
|
void |
putAll(Map<String,String> mapping)
Add a prefix, overwrites any existing association
|
void |
putAll(PrefixMap pmap)
Add a prefix, overwrites any existing association
|
void |
putAll(PrefixMapping pmap)
Add a prefix, overwrites any existing association
|
abbrev, abbreviate, contains, expand, expand, getMappingCopy, getMappingCopyStr, isEmpty, size
public PrefixMapUnmodifiable(PrefixMap other)
public Map<String,org.apache.jena.iri.IRI> getMapping()
PrefixMap
getMapping
in interface PrefixMap
getMapping
in class PrefixMapWrapper
public void add(String prefix, String iriString)
PrefixMap
add
in interface PrefixMap
add
in class PrefixMapWrapper
prefix
- PrefixiriString
- Namespace IRIpublic void add(String prefix, org.apache.jena.iri.IRI iri)
PrefixMap
add
in interface PrefixMap
add
in class PrefixMapWrapper
prefix
- Prefixiri
- Namespace IRIpublic void putAll(PrefixMap pmap)
PrefixMap
putAll
in interface PrefixMap
putAll
in class PrefixMapWrapper
pmap
- Prefix Mappublic void putAll(PrefixMapping pmap)
PrefixMap
putAll
in interface PrefixMap
putAll
in class PrefixMapWrapper
pmap
- Prefix Mappingpublic void putAll(Map<String,String> mapping)
PrefixMap
putAll
in interface PrefixMap
putAll
in class PrefixMapWrapper
mapping
- A Map of prefix name to IRI stringLicenced under the Apache License, Version 2.0