Record Class PropertyParsingContext

java.lang.Object
java.lang.Record
io.jmix.flowui.xml.layout.loader.PropertyParsingContext
Record Components:
target - an object to set value
propertyName - property name
value - string value representation
type - optional type that helps determine actual parser

public record PropertyParsingContext(Object target, String propertyName, String value, String type, ComponentLoader.Context context) extends Record
An object that stores information about the value to be set for an object property.
  • Constructor Details

    • PropertyParsingContext

      public PropertyParsingContext(Object target, String propertyName, String value, @Nullable String type, ComponentLoader.Context context)
      Creates an instance of a PropertyParsingContext record class.
      Parameters:
      target - the value for the target record component
      propertyName - the value for the propertyName record component
      value - the value for the value record component
      type - the value for the type record component
      context - the value for the context 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • target

      public Object target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • propertyName

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

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

      @Nullable public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • context

      public ComponentLoader.Context context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component