Class AbstractBeanPropertyDefinition<T,​V>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBeanPropertyDefinition​(BeanPropertySet<T> propertySet, java.lang.Class<?> propertyHolderType, java.beans.PropertyDescriptor descriptor)
      Constructor for setting the immutable descriptor, property set and property holder type used by this instance.
    • Constructor Detail

      • AbstractBeanPropertyDefinition

        public AbstractBeanPropertyDefinition​(BeanPropertySet<T> propertySet,
                                              java.lang.Class<?> propertyHolderType,
                                              java.beans.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 to
        propertyHolderType - parent property for this nested property
        descriptor - property descriptor
    • Method Detail

      • getType

        public java.lang.Class<V> getType()
        Description copied from interface: PropertyDefinition
        Gets the type of this property.
        Specified by:
        getType in interface PropertyDefinition<T,​V>
        Returns:
        the property type. not null
      • getName

        public java.lang.String getName()
        Description copied from interface: PropertyDefinition
        Gets the full name of this property.
        Specified by:
        getName in interface PropertyDefinition<T,​V>
        Returns:
        the property name, not null
      • getCaption

        public java.lang.String getCaption()
        Description copied from interface: PropertyDefinition
        Gets the human readable caption to show for this property.
        Specified by:
        getCaption in interface PropertyDefinition<T,​V>
        Returns:
        the caption to show, not null
      • getDescriptor

        protected java.beans.PropertyDescriptor getDescriptor()
        Gets the property descriptor of this instance.
        Returns:
        the property descriptor
      • getPropertyHolderType

        public java.lang.Class<?> getPropertyHolderType()
        Description copied from interface: PropertyDefinition
        Gets the type of the class containing this property.
        Specified by:
        getPropertyHolderType in interface PropertyDefinition<T,​V>
        Returns:
        the property type. not null