Package com.norconex.commons.lang.bean
Class FluentPropertyDescriptor
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- java.beans.PropertyDescriptor
-
- com.norconex.commons.lang.bean.FluentPropertyDescriptor
-
public class FluentPropertyDescriptor extends PropertyDescriptor
A property descriptor that that will return write methods for fluent APIs (returning self).- Version:
- 2.0.0
- Author:
- Pascal Essiembre
-
-
Constructor Summary
Constructors Constructor Description FluentPropertyDescriptor(PropertyDescriptor propertyDescriptor)FluentPropertyDescriptor(String propertyName, Class<?> beanClass)FluentPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName)FluentPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)MethodgetWriteMethod()inthashCode()StringtoString()-
Methods inherited from class java.beans.PropertyDescriptor
createPropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
-
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
-
-
-
-
Constructor Detail
-
FluentPropertyDescriptor
public FluentPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) throws IntrospectionException
- Throws:
IntrospectionException
-
FluentPropertyDescriptor
public FluentPropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException
- Throws:
IntrospectionException
-
FluentPropertyDescriptor
public FluentPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod) throws IntrospectionException
- Throws:
IntrospectionException
-
FluentPropertyDescriptor
public FluentPropertyDescriptor(PropertyDescriptor propertyDescriptor) throws IntrospectionException
- Throws:
IntrospectionException
-
-
Method Detail
-
getWriteMethod
public Method getWriteMethod()
- Overrides:
getWriteMethodin classPropertyDescriptor
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classPropertyDescriptor
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPropertyDescriptor
-
toString
public String toString()
- Overrides:
toStringin classFeatureDescriptor
-
-