Uses of Class
org.springframework.core.convert.TypeDescriptor
Packages that use TypeDescriptor
Package
Description
This package contains interfaces and classes for manipulating Java beans.
SPI interfaces and configuration-related convenience classes for bean factories.
Type conversion system API.
SPI to implement Converters for the type conversion system.
Default implementation of the type conversion system.
Core abstractions behind the Spring Expression Language.
Common utility classes behind the Spring Expression Language.
SpEL's central implementation package.
SpEL's standard parser implementation.
SpEL's default implementations for various core abstractions.
Provides data binding and validation functionality,
for usage in business and/or UI layers.
Support classes for annotation-based handler method processing.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Adapter classes for the standard Jakarta WebSocket API.
-
Uses of TypeDescriptor in org.springframework.beans
Methods in org.springframework.beans that return TypeDescriptorModifier and TypeMethodDescriptionAbstractNestablePropertyAccessor.PropertyHandler.getCollectionType(int nestingLevel) AbstractNestablePropertyAccessor.PropertyHandler.getMapKeyType(int nestingLevel) AbstractNestablePropertyAccessor.PropertyHandler.getMapValueType(int nestingLevel) AbstractNestablePropertyAccessor.getPropertyTypeDescriptor(String propertyName) PropertyAccessor.getPropertyTypeDescriptor(String propertyName) Return a type descriptor for the specified property: preferably from the read method, falling back to the write method.abstract @Nullable TypeDescriptorAbstractNestablePropertyAccessor.PropertyHandler.nested(int level) abstract TypeDescriptorAbstractNestablePropertyAccessor.PropertyHandler.toTypeDescriptor()Methods in org.springframework.beans with parameters of type TypeDescriptorModifier and TypeMethodDescriptionAbstractNestablePropertyAccessor.convertForProperty(String propertyName, @Nullable Object oldValue, @Nullable Object newValue, TypeDescriptor td) default <T> @Nullable TTypeConverter.convertIfNecessary(@Nullable Object value, @Nullable Class<T> requiredType, @Nullable TypeDescriptor typeDescriptor) Convert the value to the required type (if necessary from a String).<T> @Nullable TTypeConverterSupport.convertIfNecessary(@Nullable Object value, @Nullable Class<T> requiredType, @Nullable TypeDescriptor typeDescriptor) -
Uses of TypeDescriptor in org.springframework.beans.factory.config
Methods in org.springframework.beans.factory.config that return TypeDescriptorModifier and TypeMethodDescriptionDependencyDescriptor.getTypeDescriptor()Build aTypeDescriptorobject for the wrapped parameter/field. -
Uses of TypeDescriptor in org.springframework.core.convert
Methods in org.springframework.core.convert that return TypeDescriptorModifier and TypeMethodDescriptionstatic @Nullable TypeDescriptorTypeDescriptor.array(@Nullable TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, @Nullable TypeDescriptor elementTypeDescriptor) Create a new type descriptor from aCollectiontype.TypeDescriptor.elementTypeDescriptor(Object element) If this type is aCollectionor an array, creates an element TypeDescriptor from the provided collection or array element.static @Nullable TypeDescriptorCreate a new type descriptor for an object.TypeDescriptor.getElementTypeDescriptor()If this type is an array, returns the array's component type.TypeDescriptor.getMapKeyTypeDescriptor()If this type is aMapand its key type is parameterized, returns the map's key type.TypeDescriptor.getMapKeyTypeDescriptor(Object mapKey) If this type is aMap, creates a mapKeyTypeDescriptorfrom the provided map key.TypeDescriptor.getMapValueTypeDescriptor()If this type is aMapand its value type is parameterized, returns the map's value type.TypeDescriptor.getMapValueTypeDescriptor(@Nullable Object mapValue) If this type is aMap, creates a mapValueTypeDescriptorfrom the provided map value.ConversionFailedException.getSourceType()Return the source type we tried to convert the value from.ConverterNotFoundException.getSourceType()Return the source type that was requested to convert from.ConversionFailedException.getTargetType()Return the target type we tried to convert the value to.ConverterNotFoundException.getTargetType()Return the target type that was requested to convert to.static TypeDescriptorTypeDescriptor.map(Class<?> mapType, @Nullable TypeDescriptor keyTypeDescriptor, @Nullable TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMaptype.Narrows thisTypeDescriptorby setting its type to the class of the provided value.TypeDescriptor.nested(int nestingLevel) Create a type descriptor for a nested type declared within this descriptor.static @Nullable TypeDescriptorCreate a type descriptor for a nested type declared within the field.static @Nullable TypeDescriptorCreate a type descriptor for a nested type declared within the property.static @Nullable TypeDescriptorTypeDescriptor.nested(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.static TypeDescriptorCreate a new type descriptor from the given type.Methods in org.springframework.core.convert with parameters of type TypeDescriptorModifier and TypeMethodDescriptionstatic @Nullable TypeDescriptorTypeDescriptor.array(@Nullable TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.booleanConversionService.canConvert(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, @Nullable TypeDescriptor elementTypeDescriptor) Create a new type descriptor from aCollectiontype.ConversionService.convert(@Nullable Object source, @Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(@Nullable Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.booleanTypeDescriptor.isAssignableTo(TypeDescriptor typeDescriptor) Returns true if an object of this type descriptor can be assigned to the location described by the given type descriptor.static TypeDescriptorTypeDescriptor.map(Class<?> mapType, @Nullable TypeDescriptor keyTypeDescriptor, @Nullable TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMaptype.Constructors in org.springframework.core.convert with parameters of type TypeDescriptorModifierConstructorDescriptionConversionFailedException(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType, @Nullable Object value, Throwable cause) Create a new conversion exception.ConverterNotFoundException(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Create a new conversion executor not found exception. -
Uses of TypeDescriptor in org.springframework.core.convert.converter
Methods in org.springframework.core.convert.converter with parameters of type TypeDescriptorModifier and TypeMethodDescriptionGenericConverter.convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor.booleanConditionalConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) Should the conversion fromsourceTypetotargetTypecurrently under consideration be selected? -
Uses of TypeDescriptor in org.springframework.core.convert.support
Methods in org.springframework.core.convert.support with parameters of type TypeDescriptorModifier and TypeMethodDescriptionbooleanGenericConversionService.canBypassConvert(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Return whether conversion between the source type and the target type can be bypassed.booleanGenericConversionService.canConvert(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convert(@Nullable Object source, @Nullable TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convertNullSource(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.protected @Nullable GenericConverterGenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to look up the converter for a given sourceType/targetType pair.protected @Nullable GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.Constructors in org.springframework.core.convert.support with parameters of type TypeDescriptorModifierConstructorDescriptionConvertingPropertyEditorAdapter(ConversionService conversionService, TypeDescriptor targetDescriptor) Create a new ConvertingPropertyEditorAdapter for a givenConversionServiceand the given target type. -
Uses of TypeDescriptor in org.springframework.expression
Methods in org.springframework.expression that return TypeDescriptorModifier and TypeMethodDescriptionTypedValue.getTypeDescriptor()Expression.getValueTypeDescriptor()Return a descriptor for the most general type that can be passed to one of thesetValue(...)methods using the default context.Expression.getValueTypeDescriptor(@Nullable Object rootObject) Return a descriptor for the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.Expression.getValueTypeDescriptor(EvaluationContext context) Return a descriptor for the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Expression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) Return a descriptor for the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Methods in org.springframework.expression with parameters of type TypeDescriptorModifier and TypeMethodDescriptionbooleanTypeConverter.canConvert(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif the type converter can convert the specified type to the desired target type.TypeConverter.convertValue(@Nullable Object value, @Nullable TypeDescriptor sourceType, TypeDescriptor targetType) Convert (or coerce) a value from one type to another, for example from abooleanto aString.Method parameters in org.springframework.expression with type arguments of type TypeDescriptorModifier and TypeMethodDescriptionConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Within the supplied context, resolve a suitable constructor on the supplied type that can handle the specified arguments.MethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Within the supplied context, resolve a suitable method on the supplied object that can handle the specified arguments.Constructors in org.springframework.expression with parameters of type TypeDescriptorModifierConstructorDescriptionTypedValue(@Nullable Object value, @Nullable TypeDescriptor typeDescriptor) Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations. -
Uses of TypeDescriptor in org.springframework.expression.common
Methods in org.springframework.expression.common that return TypeDescriptorModifier and TypeMethodDescriptionCompositeStringExpression.getValueTypeDescriptor()CompositeStringExpression.getValueTypeDescriptor(@Nullable Object rootObject) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) LiteralExpression.getValueTypeDescriptor()LiteralExpression.getValueTypeDescriptor(@Nullable Object rootObject) LiteralExpression.getValueTypeDescriptor(EvaluationContext context) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) -
Uses of TypeDescriptor in org.springframework.expression.spel
Methods in org.springframework.expression.spel with parameters of type TypeDescriptorModifier and TypeMethodDescriptionExpressionState.convertValue(Object value, TypeDescriptor targetTypeDescriptor) ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) -
Uses of TypeDescriptor in org.springframework.expression.spel.standard
Methods in org.springframework.expression.spel.standard that return TypeDescriptorModifier and TypeMethodDescriptionSpelExpression.getValueTypeDescriptor()SpelExpression.getValueTypeDescriptor(@Nullable Object rootObject) SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) -
Uses of TypeDescriptor in org.springframework.expression.spel.support
Methods in org.springframework.expression.spel.support with parameters of type TypeDescriptorModifier and TypeMethodDescriptionbooleanStandardTypeConverter.canConvert(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType) StandardTypeConverter.convertValue(@Nullable Object value, @Nullable TypeDescriptor sourceType, TypeDescriptor targetType) voidStandardEvaluationContext.setRootObject(@Nullable Object rootObject, TypeDescriptor typeDescriptor) Specify the default root context object (including a type descriptor) against which unqualified properties, methods, etc.SimpleEvaluationContext.Builder.withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor) Specify a typed root object to resolve against.Method parameters in org.springframework.expression.spel.support with type arguments of type TypeDescriptorModifier and TypeMethodDescriptionstatic intReflectionHelper.getTypeDifferenceWeight(List<TypeDescriptor> paramTypes, List<TypeDescriptor> argTypes) Based onMethodInvoker.getTypeDifferenceWeight(Class[], Object[])but operates on TypeDescriptors.DataBindingMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Locate a constructor on the type.ReflectiveMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Locate a method on the type. -
Uses of TypeDescriptor in org.springframework.validation
Methods in org.springframework.validation with parameters of type TypeDescriptorModifier and TypeMethodDescription<T> @Nullable TDataBinder.convertIfNecessary(@Nullable Object value, @Nullable Class<T> requiredType, @Nullable TypeDescriptor typeDescriptor) -
Uses of TypeDescriptor in org.springframework.web.method.annotation
Methods in org.springframework.web.method.annotation with parameters of type TypeDescriptorModifier and TypeMethodDescriptionRequestParamMethodArgumentResolver.formatUriValue(@Nullable ConversionService cs, @Nullable TypeDescriptor sourceType, @Nullable Object value) -
Uses of TypeDescriptor in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type TypeDescriptorModifier and TypeMethodDescriptionPathVariableMethodArgumentResolver.formatUriValue(@Nullable ConversionService cs, @Nullable TypeDescriptor sourceType, Object value) -
Uses of TypeDescriptor in org.springframework.web.socket.adapter.standard
Methods in org.springframework.web.socket.adapter.standard that return TypeDescriptorModifier and TypeMethodDescriptionprotected TypeDescriptorConvertingEncoderDecoderSupport.getMessageType()Returns the websocket message type.protected TypeDescriptorConvertingEncoderDecoderSupport.getType()Returns the type being converted.