Package com.vaadin.flow.data.binder
Class BeanPropertySet.NestedBeanPropertyDefinition<T,V>
- java.lang.Object
-
- com.vaadin.flow.data.binder.AbstractBeanPropertyDefinition<T,V>
-
- com.vaadin.flow.data.binder.BeanPropertySet.NestedBeanPropertyDefinition<T,V>
-
- Type Parameters:
T
- the bean typeV
- the value type returned by the getter and set by the setter
- All Implemented Interfaces:
PropertyDefinition<T,V>
,Serializable
- Enclosing class:
- BeanPropertySet<T>
public static class BeanPropertySet.NestedBeanPropertyDefinition<T,V> extends AbstractBeanPropertyDefinition<T,V>
Contains properties for a bean type which is nested in another definition.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
MAX_PROPERTY_NESTING_DEPTH
Default maximum depth for scanning nested properties.
-
Constructor Summary
Constructors Constructor Description NestedBeanPropertyDefinition(BeanPropertySet<T> propertySet, PropertyDefinition<T,?> parent, PropertyDescriptor descriptor)
Creates a new instance of a nested property definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueProvider<T,V>
getGetter()
Gets the value provider that is used for finding the value of this property for a bean.String
getName()
Gets the full name of this property.PropertyDefinition<T,?>
getParent()
Gets the parent property of this property if this is a sub-property of the property set.Optional<Setter<T,V>>
getSetter()
Gets an optional setter for storing a property value in a bean.String
getTopLevelName()
Gets the top level name of this property.-
Methods inherited from class com.vaadin.flow.data.binder.AbstractBeanPropertyDefinition
getCaption, getDescriptor, getPropertyHolderType, getPropertySet, getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.data.binder.PropertyDefinition
isSubProperty
-
-
-
-
Field Detail
-
MAX_PROPERTY_NESTING_DEPTH
protected static final int MAX_PROPERTY_NESTING_DEPTH
Default maximum depth for scanning nested properties.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NestedBeanPropertyDefinition
public NestedBeanPropertyDefinition(BeanPropertySet<T> propertySet, PropertyDefinition<T,?> parent, PropertyDescriptor descriptor)
Creates a new instance of a nested property definition.- Parameters:
propertySet
- thePropertySet
that this property belongs toparent
- the parent property definitiondescriptor
- the property descriptor
-
-
Method Detail
-
getGetter
public ValueProvider<T,V> getGetter()
Description copied from interface:PropertyDefinition
Gets the value provider that is used for finding the value of this property for a bean.- Returns:
- the getter, not
null
-
getSetter
public Optional<Setter<T,V>> getSetter()
Description copied from interface:PropertyDefinition
Gets an optional setter for storing a property value in a bean.- Returns:
- the setter, or an empty optional if this property is read-only
-
getName
public String getName()
Description copied from interface:PropertyDefinition
Gets the full name of this property.- Specified by:
getName
in interfacePropertyDefinition<T,V>
- Overrides:
getName
in classAbstractBeanPropertyDefinition<T,V>
- Returns:
- the property name, not
null
-
getTopLevelName
public String getTopLevelName()
Description copied from interface:PropertyDefinition
Gets the top level name of this property.- Returns:
- the top level property name, not
null
-
getParent
public PropertyDefinition<T,?> getParent()
Description copied from interface:PropertyDefinition
Gets the parent property of this property if this is a sub-property of the property set. If this property belongs directly to the property set, it doesn't have a parent and this method returnsnull
.- Returns:
- the parent property, may be
null
-
-