public final class Property
extends java.lang.Object
java.beans.PropertyDescriptor
への依存を回避できるようにする JavaBeans プロパティの説明。java.beans
パッケージは、多くの環境(Android、Java ME など)では使用できないため、Spring のコア変換機能の移植性にとって望ましいものです。 プロパティの場所から TypeDescriptor
を構築するために使用されます。構築された TypeDescriptor
は、プロパティ型との間で変換するために使用できます。
TypeDescriptor.TypeDescriptor(Property)
, TypeDescriptor.nested(Property, int)
コンストラクターと説明 |
---|
Property(java.lang.Class<?> objectType, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod) |
Property(java.lang.Class<?> objectType, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod, java.lang.String name) |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(java.lang.Object other) |
java.lang.String | getName() プロパティの名前: 例: |
java.lang.Class<?> | getObjectType() このプロパティを宣言するオブジェクトは、直接またはスーパークラスでオブジェクトを継承します。 |
java.lang.reflect.Method | getReadMethod() プロパティ getter メソッド: 例。 |
java.lang.Class<?> | getType() プロパティ型: 例。 |
java.lang.reflect.Method | getWriteMethod() プロパティ setter メソッド: 例。 |
int | hashCode() |
public Property(java.lang.Class<?> objectType, @Nullable java.lang.reflect.Method readMethod, @Nullable java.lang.reflect.Method writeMethod)
public java.lang.Class<?> getObjectType()
public java.lang.String getName()
public java.lang.Class<?> getType()
java.lang.String
@Nullable public java.lang.reflect.Method getReadMethod()
getFoo()
@Nullable public java.lang.reflect.Method getWriteMethod()
setFoo(String)
public boolean equals(java.lang.Object other)
java.lang.Object
の equals
public int hashCode()
java.lang.Object
の hashCode