クラスの使用
org.springframework.core.convert.TypeDescriptor
パッケージ
説明
このパッケージには、Java Bean を操作するためのインターフェースとクラスが含まれています。
Bean ファクトリの SPI インターフェースおよび構成関連の便利なクラス。
型変換システム API。
型変換システムのコンバーターを実装する SPI。
型変換システムのデフォルト実装。
Spring Expression Language の背後にあるコア抽象化。
Spring Expression Language の背後にある一般的なユーティリティクラス。
SpEL の中央実装パッケージ。
SpEL の標準パーサー実装。
さまざまなコア抽象化のための SpEL のデフォルト実装。
ビジネスや UI レイヤーで使用するためのデータバインディングおよび検証機能を提供します。
アノテーションベースのハンドラーメソッド処理のクラスをサポートします。
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 標準 Jakarta WebSocket API のアダプタークラス。
org.springframework.beans 内の TypeDescriptor 使用
修飾子と型メソッド説明AbstractNestablePropertyAccessor.PropertyHandler.getCollectionType
(int nestingLevel) AbstractNestablePropertyAccessor.PropertyHandler.getMapKeyType
(int nestingLevel) AbstractNestablePropertyAccessor.PropertyHandler.getMapValueType
(int nestingLevel) AbstractNestablePropertyAccessor.getPropertyTypeDescriptor
(StringSE propertyName) PropertyAccessor.getPropertyTypeDescriptor
(StringSE propertyName) 指定されたプロパティの型記述子を返します。できれば読み取りメソッドから、書き込みメソッドにフォールバックしてください。abstract TypeDescriptor
AbstractNestablePropertyAccessor.PropertyHandler.nested
(int level) abstract TypeDescriptor
AbstractNestablePropertyAccessor.PropertyHandler.toTypeDescriptor()
修飾子と型メソッド説明protected ObjectSE
AbstractNestablePropertyAccessor.convertForProperty
(StringSE propertyName, ObjectSE oldValue, ObjectSE newValue, TypeDescriptor td) default <T> T
TypeConverter.convertIfNecessary
(ObjectSE value, ClassSE<T> requiredType, TypeDescriptor typeDescriptor) 値を必要な型に変換します(必要に応じて、String から)。<T> T
TypeConverterSupport.convertIfNecessary
(ObjectSE value, ClassSE<T> requiredType, TypeDescriptor typeDescriptor) org.springframework.beans.factory.config 内の TypeDescriptor 使用
修飾子と型メソッド説明DependencyDescriptor.getTypeDescriptor()
ラップされたパラメーター / フィールドのTypeDescriptor
オブジェクトを作成します。org.springframework.core.convert 内の TypeDescriptor 使用
修飾子と型メソッド説明static TypeDescriptor
TypeDescriptor.array
(TypeDescriptor elementTypeDescriptor) 指定された型の配列として新しい型記述子を作成します。static TypeDescriptor
TypeDescriptor.collection
(ClassSE<?> collectionType, TypeDescriptor elementTypeDescriptor) Collection
SE 型から新しい型記述子を作成します。TypeDescriptor.elementTypeDescriptor
(ObjectSE element) この型がCollection
SE または配列の場合、提供されたコレクションまたは配列要素から要素 TypeDescriptor を作成します。static TypeDescriptor
オブジェクトの新しい型記述子を作成します。TypeDescriptor.getElementTypeDescriptor()
この型が配列の場合、配列のコンポーネント型を返します。TypeDescriptor.getMapKeyTypeDescriptor()
この型がMap
SE であり、そのキー型がパラメーター化されている場合、マップのキー型を返します。TypeDescriptor.getMapKeyTypeDescriptor
(ObjectSE mapKey) この型がMap
SE の場合、指定されたマップキーから mapKeyTypeDescriptor
を作成します。TypeDescriptor.getMapValueTypeDescriptor()
この型がMap
SE であり、その値型がパラメーター化されている場合、マップの値型を返します。TypeDescriptor.getMapValueTypeDescriptor
(ObjectSE mapValue) この型がMap
SE の場合、指定されたマップ値から mapValueTypeDescriptor
を作成します。ConversionFailedException.getSourceType()
値の変換を試みたソース型を返します。ConverterNotFoundException.getSourceType()
変換元としてリクエストされたソース型を返します。ConversionFailedException.getTargetType()
値を変換しようとしたターゲット型を返します。ConverterNotFoundException.getTargetType()
変換をリクエストされたターゲット型を返します。static TypeDescriptor
TypeDescriptor.map
(ClassSE<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Map
SE 型から新しい型記述子を作成します。型を提供された値のクラスに設定することにより、このTypeDescriptor
を狭めます。TypeDescriptor.nested
(int nestingLevel) この記述子内で宣言されたネストされた型の型記述子を作成します。static TypeDescriptor
フィールド内で宣言されたネストされた型の型記述子を作成します。static TypeDescriptor
プロパティ内で宣言されたネストされた型の型記述子を作成します。static TypeDescriptor
TypeDescriptor.nested
(MethodParameter methodParameter, int nestingLevel) メソッドパラメーター内で宣言されたネストされた型の型記述子を作成します。このTypeDescriptor
を、アノテーションとネストされた型コンテキストを保持するスーパークラスまたは実装されたインターフェースにキャストします。static TypeDescriptor
指定された型から新しい型記述子を作成します。修飾子と型メソッド説明static TypeDescriptor
TypeDescriptor.array
(TypeDescriptor elementTypeDescriptor) 指定された型の配列として新しい型記述子を作成します。boolean
ConversionService.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) sourceType
のオブジェクトをtargetType
に変換できる場合は、true
を返します。static TypeDescriptor
TypeDescriptor.collection
(ClassSE<?> collectionType, TypeDescriptor elementTypeDescriptor) Collection
SE 型から新しい型記述子を作成します。default ObjectSE
ConversionService.convert
(ObjectSE source, TypeDescriptor targetType) 指定されたsource
を指定されたtargetType
に変換します。ConversionService.convert
(ObjectSE source, TypeDescriptor sourceType, TypeDescriptor targetType) 指定されたsource
を指定されたtargetType
に変換します。boolean
TypeDescriptor.isAssignableTo
(TypeDescriptor typeDescriptor) この型記述子のオブジェクトを、指定された型記述子で記述された場所に割り当てることができる場合は true を返します。static TypeDescriptor
TypeDescriptor.map
(ClassSE<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Map
SE 型から新しい型記述子を作成します。修飾子コンストラクター説明ConversionFailedException
(TypeDescriptor sourceType, TypeDescriptor targetType, ObjectSE value, ThrowableSE cause) 新しい変換例外を作成します。ConverterNotFoundException
(TypeDescriptor sourceType, TypeDescriptor targetType) 例外が見つからない新しい変換実行プログラムを作成します。org.springframework.core.convert.converter 内の TypeDescriptor 使用
修飾子と型メソッド説明GenericConverter.convert
(ObjectSE source, TypeDescriptor sourceType, TypeDescriptor targetType) ソースオブジェクトをTypeDescriptor
で記述された targetType に変換します。boolean
ConditionalConverter.matches
(TypeDescriptor sourceType, TypeDescriptor targetType) 現在検討中のsourceType
からtargetType
への変換を選択する必要がありますか?org.springframework.core.convert.support 内の TypeDescriptor 使用
修飾子と型メソッド説明boolean
GenericConversionService.canBypassConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) ソース型とターゲット型間の変換をバイパスできるかどうかを返します。boolean
GenericConversionService.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convert
(ObjectSE source, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectSE
GenericConversionService.convertNullSource
(TypeDescriptor sourceType, TypeDescriptor targetType) null
ソースを変換するテンプレートメソッド。protected GenericConverter
GenericConversionService.getConverter
(TypeDescriptor sourceType, TypeDescriptor targetType) 特定の sourceType/targetType ペアのコンバーターを検索するためのフックメソッド。protected GenericConverter
GenericConversionService.getDefaultConverter
(TypeDescriptor sourceType, TypeDescriptor targetType) 指定された sourceType/targetType ペアのコンバーターが見つからない場合、デフォルトのコンバーターを返します。修飾子コンストラクター説明ConvertingPropertyEditorAdapter
(ConversionService conversionService, TypeDescriptor targetDescriptor) 指定されたConversionService
および指定されたターゲット型に対して新しい ConvertingPropertyEditorAdapter を作成します。org.springframework.expression 内の TypeDescriptor 使用
修飾子と型メソッド説明TypedValue.getTypeDescriptor()
Expression.getValueTypeDescriptor()
デフォルトのコンテキストを使用してsetValue(...)
メソッドの 1 つに渡すことができる、最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor
(ObjectSE rootObject) デフォルトのコンテキストを使用してExpression.setValue(Object, Object)
メソッドに渡すことができる、最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor
(EvaluationContext context) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object)
メソッドに渡すことができる最も一般的な型の記述子を返します。Expression.getValueTypeDescriptor
(EvaluationContext context, ObjectSE rootObject) 指定されたコンテキストのExpression.setValue(EvaluationContext, Object, Object)
メソッドに渡すことができる最も一般的な型の記述子を返します。修飾子と型メソッド説明boolean
TypeConverter.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) 型コンバーターが指定された型を目的のターゲット型に変換できる場合は、true
を返します。TypeConverter.convertValue
(ObjectSE value, TypeDescriptor sourceType, TypeDescriptor targetType) 値をある型から別の型に変換(強制)します。たとえば、boolean
からString
に変換します。修飾子と型メソッド説明ConstructorResolver.resolve
(EvaluationContext context, StringSE typeName, ListSE<TypeDescriptor> argumentTypes) 指定されたコンテキスト内で、指定された引数を処理できる、指定された型の適切なコンストラクターを解決します。MethodResolver.resolve
(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) 指定されたコンテキスト内で、指定された引数を処理できる、指定されたオブジェクト上の適切なメソッドを解決します。修飾子コンストラクター説明TypedValue
(ObjectSE value, TypeDescriptor typeDescriptor) 追加の総称宣言を含む可能性がある特定のTypeDescriptor
を使用して、特定の値のTypedValue
を作成します。org.springframework.expression.common 内の TypeDescriptor 使用
修飾子と型メソッド説明CompositeStringExpression.getValueTypeDescriptor()
CompositeStringExpression.getValueTypeDescriptor
(ObjectSE rootObject) CompositeStringExpression.getValueTypeDescriptor
(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor
(EvaluationContext context, ObjectSE rootObject) LiteralExpression.getValueTypeDescriptor()
LiteralExpression.getValueTypeDescriptor
(ObjectSE rootObject) LiteralExpression.getValueTypeDescriptor
(EvaluationContext context) LiteralExpression.getValueTypeDescriptor
(EvaluationContext context, ObjectSE rootObject) org.springframework.expression.spel 内の TypeDescriptor 使用
修飾子と型メソッド説明ExpressionState.convertValue
(ObjectSE value, TypeDescriptor targetTypeDescriptor) ExpressionState.convertValue
(TypedValue value, TypeDescriptor targetTypeDescriptor) org.springframework.expression.spel.standard 内の TypeDescriptor 使用
修飾子と型メソッド説明SpelExpression.getValueTypeDescriptor()
SpelExpression.getValueTypeDescriptor
(ObjectSE rootObject) SpelExpression.getValueTypeDescriptor
(EvaluationContext context) SpelExpression.getValueTypeDescriptor
(EvaluationContext context, ObjectSE rootObject) org.springframework.expression.spel.support 内の TypeDescriptor 使用
修飾子と型メソッド説明boolean
StandardTypeConverter.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) StandardTypeConverter.convertValue
(ObjectSE value, TypeDescriptor sourceType, TypeDescriptor targetType) void
StandardEvaluationContext.setRootObject
(ObjectSE rootObject, TypeDescriptor typeDescriptor) SimpleEvaluationContext.Builder.withTypedRootObject
(ObjectSE rootObject, TypeDescriptor typeDescriptor) 解決する型付きルートオブジェクトを指定します。修飾子と型メソッド説明static int
ReflectionHelper.getTypeDifferenceWeight
(ListSE<TypeDescriptor> paramTypes, ListSE<TypeDescriptor> argTypes) MethodInvoker.getTypeDifferenceWeight(Class[], Object[])
に基づいていますが、TypeDescriptors で動作します。DataBindingMethodResolver.resolve
(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve
(EvaluationContext context, StringSE typeName, ListSE<TypeDescriptor> argumentTypes) 型のコンストラクターを見つけます。ReflectiveMethodResolver.resolve
(EvaluationContext context, ObjectSE targetObject, StringSE name, ListSE<TypeDescriptor> argumentTypes) 型のメソッドを見つけます。org.springframework.validation 内の TypeDescriptor 使用
修飾子と型メソッド説明<T> T
DataBinder.convertIfNecessary
(ObjectSE value, ClassSE<T> requiredType, TypeDescriptor typeDescriptor) org.springframework.web.method.annotation 内の TypeDescriptor 使用
修飾子と型メソッド説明protected StringSE
RequestParamMethodArgumentResolver.formatUriValue
(ConversionService cs, TypeDescriptor sourceType, ObjectSE value) org.springframework.web.servlet.mvc.method.annotation 内の TypeDescriptor 使用
修飾子と型メソッド説明protected StringSE
PathVariableMethodArgumentResolver.formatUriValue
(ConversionService cs, TypeDescriptor sourceType, ObjectSE value) org.springframework.web.socket.adapter.standard 内の TypeDescriptor 使用
修飾子と型メソッド説明protected TypeDescriptor
ConvertingEncoderDecoderSupport.getMessageType()
WebSocket メッセージ型を返します。protected TypeDescriptor
ConvertingEncoderDecoderSupport.getType()
変換される型を返します。