Package com.vaadin.flow.data.binder
Class AbstractBeanPropertyDefinition<T,V>
java.lang.Object
com.vaadin.flow.data.binder.AbstractBeanPropertyDefinition<T,V>
- Type Parameters:
T- the type of the property setV- the property type
- All Implemented Interfaces:
PropertyDefinition<T,,V> Serializable
- Direct Known Subclasses:
BeanPropertySet.NestedBeanPropertyDefinition
public abstract class AbstractBeanPropertyDefinition<T,V>
extends Object
implements PropertyDefinition<T,V>
Abstract base class for PropertyDefinition implementations for beans.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBeanPropertyDefinition(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor) Constructor for setting the immutable descriptor, property set and property holder type used by this instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the human readable caption to show for this property.protected PropertyDescriptorGets the property descriptor of this instance.getName()Gets the full name of this property.Class<?>Gets the type of the class containing this property.Gets thePropertySetthat this property belongs to.getType()Gets the type of this property.booleanGets whether the type of this property references a generic type (thusPropertyDefinition.getType()will returnObject) or a concrete type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.data.binder.PropertyDefinition
getGetter, getParent, getSetter, getTopLevelName, isSubProperty
-
Constructor Details
-
AbstractBeanPropertyDefinition
public AbstractBeanPropertyDefinition(BeanPropertySet<T> propertySet, Class<?> propertyHolderType, PropertyDescriptor descriptor) Constructor for setting the immutable descriptor, property set and property holder type used by this instance.- Parameters:
propertySet- property set this property belongs topropertyHolderType- property holder typedescriptor- property descriptor
-
-
Method Details
-
getType
Description copied from interface:PropertyDefinitionGets the type of this property.- Specified by:
getTypein interfacePropertyDefinition<T,V> - Returns:
- the property type. not
null
-
isGenericType
public boolean isGenericType()Description copied from interface:PropertyDefinitionGets whether the type of this property references a generic type (thusPropertyDefinition.getType()will returnObject) or a concrete type.- Specified by:
isGenericTypein interfacePropertyDefinition<T,V> - Returns:
trueif the type of this property references a generic type,falseotherwise
-
getName
Description copied from interface:PropertyDefinitionGets the full name of this property.- Specified by:
getNamein interfacePropertyDefinition<T,V> - Returns:
- the property name, not
null
-
getCaption
Description copied from interface:PropertyDefinitionGets the human readable caption to show for this property.- Specified by:
getCaptionin interfacePropertyDefinition<T,V> - Returns:
- the caption to show, not
null
-
getPropertySet
Description copied from interface:PropertyDefinitionGets thePropertySetthat this property belongs to.- Specified by:
getPropertySetin interfacePropertyDefinition<T,V> - Returns:
- the property set, not
null
-
getDescriptor
Gets the property descriptor of this instance.- Returns:
- the property descriptor
-
getPropertyHolderType
Description copied from interface:PropertyDefinitionGets the type of the class containing this property.- Specified by:
getPropertyHolderTypein interfacePropertyDefinition<T,V> - Returns:
- the property type. not
null
-