org.openrdf.elmo.sesame.converters.impl
Class ValueOfMarshall<T>

java.lang.Object
  extended by org.openrdf.elmo.sesame.converters.impl.ValueOfMarshall<T>
All Implemented Interfaces:
Marshall<T>

public class ValueOfMarshall<T>
extends Object
implements Marshall<T>


Constructor Summary
ValueOfMarshall(ValueFactory vf, Class<T> type)
           
 
Method Summary
 T deserialize(Literal literal)
           
 URI getDatatype()
           
 Class<? extends T> getJavaClass()
           
 Literal serialize(T object)
           
 void setDatatype(URI datatype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueOfMarshall

public ValueOfMarshall(ValueFactory vf,
                       Class<T> type)
                throws NoSuchMethodException
Throws:
NoSuchMethodException
Method Detail

getJavaClass

public Class<? extends T> getJavaClass()
Specified by:
getJavaClass in interface Marshall<T>

getDatatype

public URI getDatatype()
Specified by:
getDatatype in interface Marshall<T>

setDatatype

public void setDatatype(URI datatype)
Specified by:
setDatatype in interface Marshall<T>

deserialize

public T deserialize(Literal literal)
Specified by:
deserialize in interface Marshall<T>

serialize

public Literal serialize(T object)
Specified by:
serialize in interface Marshall<T>


Copyright © 2004-2008 Aduna. All Rights Reserved.