Record Class ComponentPropertyHelperUtil.PropertyFieldInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.plugins.propertypanel.ComponentPropertyHelperUtil.PropertyFieldInfo
- Record Components:
type- theComponentPropertyTypeof the property (e.g., STRING, BOOLEAN)multipleSelection-trueif the property allows multiple selections;falseotherwisequalifiedClassName- the fully qualified name of the Java class representing the property's type, ornullif 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 Summary
ConstructorsConstructorDescriptionConstructs aPropertyFieldInfowith the specified type, assuming no multiple selection and no associated class name.PropertyFieldInfo(ComponentPropertyType type, boolean multipleSelection, String qualifiedClassName) Creates an instance of aPropertyFieldInforecord class.PropertyFieldInfo(ComponentPropertyType type, String qualifiedClassName) Constructs aPropertyFieldInfowith the specified type and qualified class name, assuming no multiple selection. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themultipleSelectionrecord component.Returns the value of thequalifiedClassNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PropertyFieldInfo
Constructs aPropertyFieldInfowith the specified type, assuming no multiple selection and no associated class name.- Parameters:
type- theComponentPropertyTypeof the property
-
PropertyFieldInfo
Constructs aPropertyFieldInfowith the specified type and qualified class name, assuming no multiple selection.- Parameters:
type- theComponentPropertyTypeof the propertyqualifiedClassName- the fully qualified name of the Java class for this property
-
PropertyFieldInfo
public PropertyFieldInfo(ComponentPropertyType type, boolean multipleSelection, String qualifiedClassName) Creates an instance of aPropertyFieldInforecord class.- Parameters:
type- the value for thetyperecord componentmultipleSelection- the value for themultipleSelectionrecord componentqualifiedClassName- the value for thequalifiedClassNamerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
multipleSelection
public boolean multipleSelection()Returns the value of themultipleSelectionrecord component.- Returns:
- the value of the
multipleSelectionrecord component
-
qualifiedClassName
Returns the value of thequalifiedClassNamerecord component.- Returns:
- the value of the
qualifiedClassNamerecord component
-