|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.glitter.rdf.datatype.TypedValueMapper
public final class TypedValueMapper
The typed value mapper uses a series of ITypeMaps to convert between lexical forms of literal values and native Java
values.
| Constructor Summary | |
|---|---|
TypedValueMapper()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getLexicalValue(java.lang.Object o)
Returns the lexical form of the given native value, as informed by the type of the value. |
static java.lang.Object |
getNativeObject(java.lang.String value,
java.net.URI datatype)
Converts the lexical form of a value to a native Java value using the given XML schema type to inform the conversion. |
static java.net.URI |
getXSDatatype(java.lang.Object o)
Get the XML Schema type corresponding to the class of the native Java object given |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypedValueMapper()
| Method Detail |
|---|
public static java.lang.Object getNativeObject(java.lang.String value,
java.net.URI datatype)
value - value to convertdatatype - XML schema type of value
public static java.lang.String getLexicalValue(java.lang.Object o)
o - native object to convert
public static java.net.URI getXSDatatype(java.lang.Object o)
o - datatype to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||