|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.hp.hpl.jena.daml.common.XMLDatatypeRegistry
Provides a registry that can map RDF values encoded using XML Schema type definitions into Java objects or scalars. A basic set of mappings is provided, but other type mappings can be added by the user.
| Field Summary | |
static Resource |
XSD_INTEGER
Resource to denote the type of an xsd integer |
static java.lang.String |
XSD_NAMESPACE_URI
The URI for XML schema datatypes (xsd) namespace |
| Constructor Summary | |
XMLDatatypeRegistry()
Constructor for the registry, which will register a basic set of mappings. |
|
| Method Summary | |
java.util.Iterator |
getRegisteredTypes()
Answer an iteration over the types of URI's that are registered. |
DatatypeTranslator |
getTranslator(java.lang.String uri)
Answer the datatype translator for a a resource whose rdf:type
is the given URI. |
boolean |
isRegisteredType(java.lang.String typeURI)
Answer true if the given type URI is registered in this registry |
void |
registerTranslator(java.lang.String uri,
DatatypeTranslator translator)
Register a translator for the type whose uri is as given. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String XSD_NAMESPACE_URI
public static final Resource XSD_INTEGER
| Constructor Detail |
public XMLDatatypeRegistry()
| Method Detail |
public DatatypeTranslator getTranslator(java.lang.String uri)
rdf:type
is the given URI.
uri - The uri of the type
public void registerTranslator(java.lang.String uri,
DatatypeTranslator translator)
uri - The uri of the type to be registeredtranslator - The translator that will map objects of the given type
between Java and XML/RDF.public java.util.Iterator getRegisteredTypes()
public boolean isRegisteredType(java.lang.String typeURI)
typeURI - The URI of the type to be tested, as a string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||