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

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

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


Constructor Summary
ObjectConstructorMarshall(ValueFactory vf, Class<T> type)
           
 
Method Summary
 T deserialize(Literal literal)
           
 URI getDatatype()
           
 Class<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

ObjectConstructorMarshall

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

getJavaClass

public Class<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.