Record Class ComponentPropertyHelperUtil.PropertyFieldInfo

java.lang.Object
java.lang.Record
com.vaadin.copilot.plugins.propertypanel.ComponentPropertyHelperUtil.PropertyFieldInfo
Record Components:
type - the ComponentPropertyType of the property (e.g., STRING, BOOLEAN)
multipleSelection - true if the property allows multiple selections; false otherwise
qualifiedClassName - the fully qualified name of the Java class representing the property's type, or null if not specified
Enclosing class:
ComponentPropertyHelperUtil

public static record ComponentPropertyHelperUtil.PropertyFieldInfo(ComponentPropertyType type, boolean multipleSelection, String qualifiedClassName) extends Record
Holds metadata about a component property field, including its type, whether it supports multiple selection, and the fully qualified name of its associated class.

This record encapsulates the characteristics of a property used in a component, typically for serialization or tooling purposes.

  • Constructor Details

    • PropertyFieldInfo

      public PropertyFieldInfo(ComponentPropertyType type)
      Constructs a PropertyFieldInfo with the specified type, assuming no multiple selection and no associated class name.
      Parameters:
      type - the ComponentPropertyType of the property
    • PropertyFieldInfo

      public PropertyFieldInfo(ComponentPropertyType type, String qualifiedClassName)
      Constructs a PropertyFieldInfo with the specified type and qualified class name, assuming no multiple selection.
      Parameters:
      type - the ComponentPropertyType of the property
      qualifiedClassName - the fully qualified name of the Java class for this property
    • PropertyFieldInfo

      public PropertyFieldInfo(ComponentPropertyType type, boolean multipleSelection, String qualifiedClassName)
      Creates an instance of a PropertyFieldInfo record class.
      Parameters:
      type - the value for the type record component
      multipleSelection - the value for the multipleSelection record component
      qualifiedClassName - the value for the qualifiedClassName record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public ComponentPropertyType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • multipleSelection

      public boolean multipleSelection()
      Returns the value of the multipleSelection record component.
      Returns:
      the value of the multipleSelection record component
    • qualifiedClassName

      public String qualifiedClassName()
      Returns the value of the qualifiedClassName record component.
      Returns:
      the value of the qualifiedClassName record component