Package com.vaadin.featurepack.data.util
Class NestedPropertyDescriptor<BT>
java.lang.Object
com.vaadin.featurepack.data.util.NestedPropertyDescriptor<BT>
- Type Parameters:
BT- bean type
- All Implemented Interfaces:
VaadinPropertyDescriptor<BT>,Serializable
Property descriptor that is able to create nested property instances for a
bean.
The property is specified in the dotted notation, e.g. "address.street", and
can contain multiple levels of nesting.
- Since:
- 6.6
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNestedPropertyDescriptor(String name, Class<BT> beanType) Creates a property descriptor that can create MethodProperty instances to access the underlying bean property. -
Method Summary
-
Constructor Details
-
NestedPropertyDescriptor
Creates a property descriptor that can create MethodProperty instances to access the underlying bean property.- Parameters:
name- of the property in a dotted path format, e.g. "address.street"beanType- type (class) of the top-level bean- Throws:
IllegalArgumentException- if the property name is invalid
-
-
Method Details
-
getName
Description copied from interface:VaadinPropertyDescriptorReturns the name of the property.- Specified by:
getNamein interfaceVaadinPropertyDescriptor<BT>- Returns:
-
getPropertyType
Description copied from interface:VaadinPropertyDescriptorReturns the type of the property.- Specified by:
getPropertyTypein interfaceVaadinPropertyDescriptor<BT>- Returns:
- Classinvalid input: '<'?>
-
createProperty
Description copied from interface:VaadinPropertyDescriptorCreates a newPropertyinstance for this property for a bean.- Specified by:
createPropertyin interfaceVaadinPropertyDescriptor<BT>- Parameters:
bean-- Returns:
-