|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.datatypes.TypeMapper
public class TypeMapper
The TypeMapper provides a global registry of known datatypes. The datatypes can be retrieved by their URI or from the java class that is used to represent them.
| Constructor Summary | |
|---|---|
TypeMapper()
|
|
| Method Summary | |
|---|---|
static TypeMapper |
getInstance()
Return the single global instance of the TypeMapper. |
RDFDatatype |
getSafeTypeByName(String uri)
Version of getTypeByName which will treat unknown URIs as typed literals but with just the default implementation |
RDFDatatype |
getTypeByClass(Class<?> clazz)
Look up a datatype suitable for representing instances of the given Java class. |
RDFDatatype |
getTypeByName(String uri)
Lookup a known datatype. |
RDFDatatype |
getTypeByValue(Object value)
Method getTypeByValue. |
Iterator<RDFDatatype> |
listTypes()
List all the known datatypes |
static void |
main(String[] args)
|
void |
registerDatatype(RDFDatatype type)
Register a new datatype |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeMapper()
| Method Detail |
|---|
public static TypeMapper getInstance()
public RDFDatatype getSafeTypeByName(String uri)
uri - the URI of the desired datatype
public RDFDatatype getTypeByName(String uri)
uri - the URI of the desired datatype
public RDFDatatype getTypeByValue(Object value)
value - a value instance to be represented
valuepublic Iterator<RDFDatatype> listTypes()
public RDFDatatype getTypeByClass(Class<?> clazz)
clazz - a Java class to be represented
public void registerDatatype(RDFDatatype type)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||