public interface FieldTypeResolver
| Modifier and Type | Method and Description |
|---|---|
static FieldTypeResolver |
forContent(byte[] content,
MediaType contentType)
Deprecated.
since 2.0.4 in favor of
forContentWithDescriptors(byte[], MediaType, List) |
static FieldTypeResolver |
forContentWithDescriptors(byte[] content,
MediaType contentType,
List<FieldDescriptor> descriptors)
Create a
FieldTypeResolver for the given content and
contentType, described by the given descriptors. |
Object |
resolveFieldType(FieldDescriptor fieldDescriptor)
Resolves the type of the field that is described by the given
fieldDescriptor based on the content of the payload. |
@Deprecated static FieldTypeResolver forContent(byte[] content, MediaType contentType)
forContentWithDescriptors(byte[], MediaType, List)FieldTypeResolver for the given content and
contentType.content - the payload that the FieldTypeResolver should handlecontentType - the content type of the payloadFieldTypeResolverstatic FieldTypeResolver forContentWithDescriptors(byte[] content, MediaType contentType, List<FieldDescriptor> descriptors)
FieldTypeResolver for the given content and
contentType, described by the given descriptors.content - the payload that the FieldTypeResolver should handlecontentType - the content type of the payloaddescriptors - the descriptors of the contentFieldTypeResolverObject resolveFieldType(FieldDescriptor fieldDescriptor)
fieldDescriptor based on the content of the payload.fieldDescriptor - the field descriptor