public interface PrefixMapping
Modifier and Type | Method and Description |
---|---|
String |
expandQName(String qname)
Expand a qname into an uri using the prefix mappings, if a prefix is available.
|
Map<String,String> |
getNamespacePrefixMapping()
Return a copy of the internal mapping from prefixes to namespaces (as strings).
|
String |
getNSForPrefix(String prefix)
Gets the URI bound to a specific prefix, null if there isn't one.
|
String |
getPrefixForNS(String namespace)
Answer the prefix for the given URI, or null if there isn't one.
|
String |
getQName(String uri)
Compress the URI into a qname using the prefix mappings, if a prefix is available.
|
void |
removeNsPrefixMapping(String namespace)
Removes prefix/namespace mapping
|
void |
setNsPrefix(String namespace,
String prefix)
Specify the prefix name for a URI prefix string.
|
String expandQName(String qname) throws ModelAccessException
prefix
- ModelAccessException
String getQName(String uri) throws ModelAccessException
uri
- ModelAccessException
Map<String,String> getNamespacePrefixMapping() throws ModelAccessException
ModelAccessException
String getNSForPrefix(String prefix) throws ModelAccessException
prefix
- ModelAccessException
String getPrefixForNS(String namespace) throws ModelAccessException
uri
- ModelAccessException
void setNsPrefix(String namespace, String prefix) throws ModelUpdateException
prefix
- namespace
- ModelUpdateException
void removeNsPrefixMapping(String namespace) throws ModelUpdateException
prefix
- uri
- ModelUpdateException
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.