public abstract class PrefixMapBase extends Object implements PrefixMap
PrefixMap which provides
some useful helper methods| Constructor 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, waitabbrev, abbreviate, add, contains, delete, expand, getMapping, isEmpty, sizepublic Map<String,org.apache.jena.iri.IRI> getMappingCopy()
PrefixMapPrefixMap.getMapping()getMappingCopy in interface PrefixMappublic Map<String,String> getMappingCopyStr()
PrefixMapgetMappingCopyStr in interface PrefixMappublic void add(String prefix, String iriString)
PrefixMappublic void putAll(PrefixMap pmap)
PrefixMappublic void putAll(PrefixMapping pmap)
PrefixMappublic void putAll(Map<String,String> mapping)
PrefixMappublic String expand(String prefixedName)
PrefixMapLicenced under the Apache License, Version 2.0