org.apache.jena.riot.system
Class PrefixMapUnmodifiable

java.lang.Object
  extended by org.apache.jena.riot.system.PrefixMapWrapper
      extended by 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
PrefixMapUnmodifiable(PrefixMap other)
           
 
Method Summary
 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
 
Methods inherited from class org.apache.jena.riot.system.PrefixMapWrapper
abbrev, abbreviate, contains, expand, expand, getMappingCopy, getMappingCopyStr, isEmpty, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixMapUnmodifiable

public PrefixMapUnmodifiable(PrefixMap other)
Method Detail

getMapping

public Map<String,org.apache.jena.iri.IRI> getMapping()
Description copied from interface: PrefixMap
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

Specified by:
getMapping in interface PrefixMap
Overrides:
getMapping in class PrefixMapWrapper
Returns:
Underlying mapping

add

public void add(String prefix,
                String iriString)
Description copied from interface: PrefixMap
Add a prefix, overwrites any existing association

Specified by:
add in interface PrefixMap
Overrides:
add in class PrefixMapWrapper
Parameters:
prefix - Prefix
iriString - Namespace IRI

add

public void add(String prefix,
                org.apache.jena.iri.IRI iri)
Description copied from interface: PrefixMap
Add a prefix, overwrites any existing association

Specified by:
add in interface PrefixMap
Overrides:
add in class PrefixMapWrapper
Parameters:
prefix - Prefix
iri - Namespace IRI

putAll

public void putAll(PrefixMap pmap)
Description copied from interface: PrefixMap
Add a prefix, overwrites any existing association

Specified by:
putAll in interface PrefixMap
Overrides:
putAll in class PrefixMapWrapper
Parameters:
pmap - Prefix Map

putAll

public void putAll(PrefixMapping pmap)
Description copied from interface: PrefixMap
Add a prefix, overwrites any existing association

Specified by:
putAll in interface PrefixMap
Overrides:
putAll in class PrefixMapWrapper
Parameters:
pmap - Prefix Mapping

putAll

public void putAll(Map<String,String> mapping)
Description copied from interface: PrefixMap
Add a prefix, overwrites any existing association

Specified by:
putAll in interface PrefixMap
Overrides:
putAll in class PrefixMapWrapper
Parameters:
mapping - A Map of prefix name to IRI string

delete

public void delete(String prefix)
Description copied from interface: PrefixMap
Delete a prefix

Specified by:
delete in interface PrefixMap
Overrides:
delete in class PrefixMapWrapper
Parameters:
prefix - Prefix to delete


Licenced under the Apache License, Version 2.0