|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jrdf.writer.RdfNamespaceMapImpl
public final class RdfNamespaceMapImpl
Contains mappings between namespaces and partial URIs.
| Constructor Summary | |
|---|---|
RdfNamespaceMapImpl(MapFactory mapFactory)
|
|
| Method Summary | |
|---|---|
void |
addNamespace(String namespace,
String partialUri)
Adds a new namespace mapping, if no mapping already exists. |
Set<Map.Entry<String,String>> |
getNameEntries()
Returns the Names mapping entry set. |
QName |
getQName(String uri)
Parses a string and finds the last # or / and treats the characters before that as the namespace URI and the characters after it as the local part. |
void |
load(Graph graph)
Loads namespaces from the graph. |
void |
reset()
Reset the name and uri mappings. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RdfNamespaceMapImpl(MapFactory mapFactory)
| Method Detail |
|---|
public void load(Graph graph)
throws GraphException
RdfNamespaceMap
load in interface RdfNamespaceMapgraph - Graph containing URIs to load from.
GraphException - If the graph cannot be read.
public void addNamespace(String namespace,
String partialUri)
throws NamespaceException
RdfNamespaceMap
addNamespace in interface RdfNamespaceMapnamespace - the shortened name to add, e.g. rdf.partialUri - the URI to map, e.g. http://www.w3.org/1999/02/22-rdf-syntax-ns#.
NamespaceExceptionpublic Set<Map.Entry<String,String>> getNameEntries()
RdfNamespaceMap
getNameEntries in interface RdfNamespaceMappublic QName getQName(String uri)
RdfNamespaceMap
getQName in interface RdfNamespaceMapuri - the uri to parse
public void reset()
RdfNamespaceMap
reset in interface RdfNamespaceMappublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||