public final class PropertyInfo extends java.lang.Object implements java.lang.Comparable<PropertyInfo>
Constructor and Description |
---|
PropertyInfo(java.lang.Class<?> declaringType,
java.lang.String name,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.Class<?> propertyType)
Initializes with property information.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PropertyInfo other) |
java.lang.Class<?> |
getDeclaringType()
Returns the class which declares this property
|
java.lang.reflect.Method |
getGetter()
Returns the property getter method
|
java.lang.String |
getName()
Returns the name of the property, e.g.
|
java.lang.Class<?> |
getPropertyType()
Returns the property type
|
java.lang.reflect.Method |
getSetter()
Returns the property setter method
|
java.lang.String |
toString() |
public PropertyInfo(java.lang.Class<?> declaringType, java.lang.String name, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> propertyType)
java.lang.NullPointerException
- An argument is nulljava.lang.IllegalArgumentException
- The name is emptypublic java.lang.String getName()
public java.lang.reflect.Method getGetter()
public java.lang.reflect.Method getSetter()
public java.lang.Class<?> getDeclaringType()
public java.lang.Class<?> getPropertyType()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(PropertyInfo other)
compareTo
in interface java.lang.Comparable<PropertyInfo>