public abstract class PrefixMapBase extends Object implements PrefixMap
PrefixMap
which provides
some useful helper methodsConstructor and Description |
---|
PrefixMapBase() |
Modifier and Type | Method and Description |
---|---|
void |
add(String prefix,
String iriString)
Add a prefix, overwrites any existing association
|
String |
expand(String prefixedName)
Expand a prefix named, return null if it can't be expanded
|
Map<String,org.apache.jena.iri.IRI> |
getMappingCopy()
Return a fresh copy of the underlying mapping, should be safe to modify
unlike the mapping returned from
PrefixMap.getMapping() |
Map<String,String> |
getMappingCopyStr()
Gets a fresh copy of the mapping with the IRIs translated into their
strings
|
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
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
abbrev, abbreviate, add, contains, delete, expand, getMapping, isEmpty, size
public Map<String,org.apache.jena.iri.IRI> getMappingCopy()
PrefixMap
PrefixMap.getMapping()
getMappingCopy
in interface PrefixMap
public Map<String,String> getMappingCopyStr()
PrefixMap
getMappingCopyStr
in interface PrefixMap
public void add(String prefix, String iriString)
PrefixMap
public void putAll(PrefixMap pmap)
PrefixMap
public void putAll(PrefixMapping pmap)
PrefixMap
public void putAll(Map<String,String> mapping)
PrefixMap
public String expand(String prefixedName)
PrefixMap
Licenced under the Apache License, Version 2.0