类 Property
java.lang.Object
cn.dinodev.spring.commons.bean.Property
- 作者:
- Cody Lu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanThe property AnnotationsgetField()The property Field: e.g.org.springframework.core.MethodParameterThe method parameter for the property getter or setter method: e.g.getName()The name of the property: e.g.Class<?>The object declaring this property, either directly or in a superclass the object extends.<A extends Annotation>
AgetReadAnnotation(Class<A> annotationType) The property Annotation on getter methodThe property getter method: e.g.org.springframework.core.ResolvableTypeThe ResolvableType property type.Class<?>getType()The property type: e.g.<A extends Annotation>
AgetWriteAnnotation(Class<A> annotationType) The property Annotation on setter methodThe property setter method: e.g.inthashCode()booleanThe property is readable.booleanisReadableInJsonView(Class<?> activeView) is the property readable && visible in the given view.booleanisVisiableInJsonView(Class<?> activeView) The property is readable or writable in given view.booleanThe property is writable.booleanisWritableInJsonView(Class<?> activeView) is the property writable && visible in the given view.
-
构造器详细资料
-
Property
-
Property
-
-
方法详细资料
-
getObjectType
The object declaring this property, either directly or in a superclass the object extends.- 返回:
- the object type
-
getName
The name of the property: e.g. 'foo'- 返回:
- the name of the property
-
getType
The property type: e.g.java.lang.String- 返回:
- the property type
-
getResolvableType
public org.springframework.core.ResolvableType getResolvableType()The ResolvableType property type.- 返回:
- the ResolvableType property type
-
getReadMethod
The property getter method: e.g.getFoo()- 返回:
- the property getter method, or null if not found
-
getWriteMethod
The property setter method: e.g.setFoo(String)- 返回:
- the property setter method, or null if not found
-
getField
The property Field: e.g.String foo;- 返回:
- the property Field, or null if not found
-
isReadable
public boolean isReadable()The property is readable.- 返回:
- true if the property is readable
-
isWritable
public boolean isWritable()The property is writable.- 返回:
- true if the property is writable
-
isVisiableInJsonView
The property is readable or writable in given view.- 参数:
activeView- active jsonView- 返回:
- true if the property is readable or writable in given view
-
isReadableInJsonView
is the property readable && visible in the given view.- 参数:
activeView- active jsonView- 返回:
- true if the property is readable and visible in the given view.
-
isWritableInJsonView
is the property writable && visible in the given view.- 参数:
activeView- active jsonView- 返回:
- true if the property is writable and visible in the given view.
-
getMethodParameter
public org.springframework.core.MethodParameter getMethodParameter()The method parameter for the property getter or setter method: e.g.MethodParameter(getFoo())- 返回:
- the method parameter for the property getter or setter method
-
getAnnotations
The property Annotations- 返回:
- the property Annotations on the getter/setter method or field
-
getReadAnnotation
The property Annotation on getter method- 参数:
annotationType- the annotation type- 返回:
- the property Annotation on getter method or field
-
getWriteAnnotation
The property Annotation on setter method- 参数:
annotationType- the annotation type- 返回:
- the property Annotation on setter method or field
-
equals
-
hashCode
public int hashCode()
-