@Deprecated public class EmfConverter extends ConverterHelper
| Constructor and Description |
|---|
EmfConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T extends EObject> |
create(MediaType mediaType,
T source)
Deprecated.
Creates the marshaling
EmfRepresentation. |
protected <T extends EObject> |
create(Representation source)
Deprecated.
Creates the unmarshaling
EmfRepresentation. |
java.util.List<java.lang.Class<?>> |
getObjectClasses(Variant source)
Deprecated.
|
java.util.List<VariantInfo> |
getVariants(java.lang.Class<?> source)
Deprecated.
|
protected boolean |
isCompatible(Variant variant)
Deprecated.
Indicates if the given variant is compatible with the media types
supported by this converter.
|
float |
score(java.lang.Object source,
Variant target,
Resource resource)
Deprecated.
|
<T> float |
score(Representation source,
java.lang.Class<T> target,
Resource resource)
Deprecated.
|
<T> T |
toObject(Representation source,
java.lang.Class<T> target,
Resource resource)
Deprecated.
|
Representation |
toRepresentation(java.lang.Object source,
Variant target,
Resource resource)
Deprecated.
|
<T> void |
updatePreferences(java.util.List<Preference<MediaType>> preferences,
java.lang.Class<T> entity)
Deprecated.
|
addObjectClass, addVariant, addVariants, getVariants, updatePreferencesprotected <T extends EObject> EmfRepresentation<T> create(MediaType mediaType, T source)
EmfRepresentation.T - mediaType - The target media type.source - The source object to marshal.EmfRepresentation.protected <T extends EObject> EmfRepresentation<T> create(Representation source)
EmfRepresentation.T - source - The source representation to unmarshal.EmfRepresentation.public java.util.List<java.lang.Class<?>> getObjectClasses(Variant source)
getObjectClasses in class ConverterHelperpublic java.util.List<VariantInfo> getVariants(java.lang.Class<?> source)
getVariants in class ConverterHelperprotected boolean isCompatible(Variant variant)
variant - The variant.public float score(java.lang.Object source,
Variant target,
Resource resource)
score in class ConverterHelperpublic <T> float score(Representation source, java.lang.Class<T> target, Resource resource)
score in class ConverterHelperpublic <T> T toObject(Representation source, java.lang.Class<T> target, Resource resource) throws java.io.IOException
toObject in class ConverterHelperjava.io.IOExceptionpublic Representation toRepresentation(java.lang.Object source, Variant target, Resource resource)
toRepresentation in class ConverterHelperpublic <T> void updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)
updatePreferences in class ConverterHelperCopyright © 2005-2020 Restlet.