public class FreemarkerConverter extends ConverterHelper
Constructor and Description |
---|
FreemarkerConverter() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<?>> |
getObjectClasses(Variant source) |
java.util.List<VariantInfo> |
getVariants(java.lang.Class<?> source) |
float |
score(java.lang.Object source,
Variant target,
Resource resource) |
<T> float |
score(Representation source,
java.lang.Class<T> target,
Resource resource) |
<T> T |
toObject(Representation source,
java.lang.Class<T> target,
Resource resource) |
Representation |
toRepresentation(java.lang.Object source,
Variant target,
Resource resource) |
addObjectClass, addVariant, addVariants, getVariants, updatePreferences, updatePreferences
public java.util.List<java.lang.Class<?>> getObjectClasses(Variant source)
getObjectClasses
in class ConverterHelper
public java.util.List<VariantInfo> getVariants(java.lang.Class<?> source)
getVariants
in class ConverterHelper
public float score(java.lang.Object source, Variant target, Resource resource)
score
in class ConverterHelper
public <T> float score(Representation source, java.lang.Class<T> target, Resource resource)
score
in class ConverterHelper
public <T> T toObject(Representation source, java.lang.Class<T> target, Resource resource) throws java.io.IOException
toObject
in class ConverterHelper
java.io.IOException
public Representation toRepresentation(java.lang.Object source, Variant target, Resource resource) throws java.io.IOException
toRepresentation
in class ConverterHelper
java.io.IOException
Copyright © 2005-2024 Restlet.