|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.writer.mem.RdfNamespaceMapImpl
public class RdfNamespaceMapImpl
Contains mappings between namespaces and partial URIs.
Constructor Summary | |
---|---|
RdfNamespaceMapImpl()
|
Method Summary | |
---|---|
Set<Map.Entry<String,String>> |
getNameEntries()
Returns the Names mapping entry set. |
String |
getNamespace(URIReference resource)
Returns the namespace that is mapped to the resource URI (prefix), or null if the URI is not mapped. |
void |
load(Graph graph)
Loads namespaces from the graph. |
String |
replaceNamespace(URIReference resource)
Returns a string representing the resource URI with its URI prefix replaced by the mapped namespace. |
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()
Method Detail |
---|
public void load(Graph graph) throws GraphException
RdfNamespaceMap
load
in interface RdfNamespaceMap
graph
- Graph containing URIs to load from.
GraphException
- If the graph cannot be read.public String replaceNamespace(URIReference resource) throws NamespaceException
RdfNamespaceMap
replaceNamespace
in interface RdfNamespaceMap
resource
- URIReference resource URI
NamespaceException
- If there is no mapping for the partial resource URI.public String getNamespace(URIReference resource)
RdfNamespaceMap
getNamespace
in interface RdfNamespaceMap
resource
- URIReference resource URI to look up.
public Set<Map.Entry<String,String>> getNameEntries()
RdfNamespaceMap
getNameEntries
in interface RdfNamespaceMap
public void reset()
RdfNamespaceMap
reset
in interface RdfNamespaceMap
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |