public class PrefixMapping2 extends Object implements PrefixMapping
PrefixMapping.Factory, PrefixMapping.IllegalPrefixException, PrefixMapping.JenaLockedException
Extended, Standard
Constructor and Description |
---|
PrefixMapping2(PrefixMapping globalMapping) |
PrefixMapping2(PrefixMapping globalMapping,
PrefixMapping localMapping) |
Modifier and Type | Method and Description |
---|---|
String |
expandPrefix(String prefixed) |
PrefixMapping |
getGlobalPrefixMapping() |
PrefixMapping |
getLocalPrefixMapping() |
Map<String,String> |
getNsPrefixMap() |
Map<String,String> |
getNsPrefixMap(boolean includeGlobalMap) |
String |
getNsPrefixURI(String prefix) |
String |
getNsURIPrefix(String uri) |
PrefixMapping |
lock() |
String |
qnameFor(String uri) |
PrefixMapping |
removeNsPrefix(String prefix) |
boolean |
samePrefixMappingAs(PrefixMapping other) |
void |
setGlobalPrefixMapping(PrefixMapping x) |
void |
setLocalPrefixMapping(PrefixMapping x) |
PrefixMapping |
setNsPrefix(String prefix,
String uri) |
PrefixMapping |
setNsPrefixes(Map<String,String> map) |
PrefixMapping |
setNsPrefixes(PrefixMapping other) |
String |
shortForm(String uri) |
PrefixMapping |
withDefaultMappings(PrefixMapping map) |
public PrefixMapping2(PrefixMapping globalMapping, PrefixMapping localMapping)
public PrefixMapping2(PrefixMapping globalMapping)
public PrefixMapping getLocalPrefixMapping()
public PrefixMapping getGlobalPrefixMapping()
public void setLocalPrefixMapping(PrefixMapping x)
public void setGlobalPrefixMapping(PrefixMapping x)
public PrefixMapping setNsPrefix(String prefix, String uri)
setNsPrefix
in interface PrefixMapping
PrefixMapping.setNsPrefix(java.lang.String, java.lang.String)
public PrefixMapping removeNsPrefix(String prefix)
removeNsPrefix
in interface PrefixMapping
PrefixMapping.removeNsPrefix(java.lang.String)
public PrefixMapping setNsPrefixes(PrefixMapping other)
setNsPrefixes
in interface PrefixMapping
PrefixMapping.setNsPrefixes(com.hp.hpl.jena.shared.PrefixMapping)
public PrefixMapping setNsPrefixes(Map<String,String> map)
setNsPrefixes
in interface PrefixMapping
PrefixMapping.setNsPrefixes(java.util.Map)
public String getNsPrefixURI(String prefix)
getNsPrefixURI
in interface PrefixMapping
PrefixMapping.getNsPrefixURI(java.lang.String)
public String getNsURIPrefix(String uri)
getNsURIPrefix
in interface PrefixMapping
PrefixMapping.getNsURIPrefix(java.lang.String)
public Map<String,String> getNsPrefixMap()
getNsPrefixMap
in interface PrefixMapping
PrefixMapping.getNsPrefixMap()
public String expandPrefix(String prefixed)
expandPrefix
in interface PrefixMapping
PrefixMapping.expandPrefix(java.lang.String)
public String shortForm(String uri)
shortForm
in interface PrefixMapping
PrefixMapping.shortForm(java.lang.String)
public String qnameFor(String uri)
qnameFor
in interface PrefixMapping
PrefixMapping.qnameFor(java.lang.String)
public PrefixMapping lock()
lock
in interface PrefixMapping
PrefixMapping.lock()
public PrefixMapping withDefaultMappings(PrefixMapping map)
withDefaultMappings
in interface PrefixMapping
public boolean samePrefixMappingAs(PrefixMapping other)
samePrefixMappingAs
in interface PrefixMapping
Licenced under the Apache License, Version 2.0