org.restlet.ext.jibx
Class JibxConverter
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.converter.ConverterHelper
org.restlet.ext.jibx.JibxConverter
public class JibxConverter
- extends ConverterHelper
A JiBX converter helper to convert from JiBX objects to JibxRepresentation
and vice versa. It only supports objects that are not bound several times
using several binding names.
- Author:
- Thierry Boileau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JibxConverter
public JibxConverter()
getObjectClasses
public List<Class<?>> getObjectClasses(Variant source)
- Specified by:
getObjectClasses
in class ConverterHelper
getVariants
public List<VariantInfo> getVariants(Class<?> source)
- Specified by:
getVariants
in class ConverterHelper
score
public float score(Object source,
Variant target,
Resource resource)
- Specified by:
score
in class ConverterHelper
score
public <T> float score(Representation source,
Class<T> target,
Resource resource)
- Specified by:
score
in class ConverterHelper
toObject
public <T> T toObject(Representation source,
Class<T> target,
Resource resource)
throws IOException
- Specified by:
toObject
in class ConverterHelper
- Throws:
IOException
toRepresentation
public Representation toRepresentation(Object source,
Variant target,
Resource resource)
- Specified by:
toRepresentation
in class ConverterHelper
updatePreferences
public <T> void updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
- Overrides:
updatePreferences
in class ConverterHelper
Copyright © 2005-2013 Restlet.