|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.datatools.etl.utils.NamespaceManager
public class NamespaceManager
A small utility class for managing namespaces and qnames
| Method Summary | |
|---|---|
static void |
add(java.lang.String prefix,
java.lang.String url)
Adds a single namespace key/value pair to the list |
static void |
addAll(java.util.Map m)
Adds all the namespace key/value pairs in the map to the list of all current namespaces |
static void |
clear()
Clear all known namespaces from the manager |
static java.lang.String |
getPrefixForURI(java.lang.String url)
Returns the namespace abbreviation used for the specified identifier |
static java.lang.String |
getQNameFor(java.lang.String id)
Encodes an rdf:ID URL as a Qname |
static java.lang.String |
getURIForQName(java.lang.String qname)
Returns the full expanded URI for a given qname |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addAll(java.util.Map m)
m - Map - a set of namespace key/value pairs
public static void add(java.lang.String prefix,
java.lang.String url)
prefix - String - the abbreviation for the namespaceurl - String - the url of the namespacepublic static java.lang.String getQNameFor(java.lang.String id)
id - String - the id to convert
public static java.lang.String getPrefixForURI(java.lang.String url)
url - String - the Id
public static java.lang.String getURIForQName(java.lang.String qname)
qname - String the qname to expand
public static void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||