Package io.jmix.flowui.xml.layout.loader
Record Class PropertyParsingContext
java.lang.Object
java.lang.Record
io.jmix.flowui.xml.layout.loader.PropertyParsingContext
- Record Components:
target- an object to set valuepropertyName- property namevalue- string value representationtype- 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 Summary
ConstructorsConstructorDescriptionPropertyParsingContext(Object target, String propertyName, String value, String type, ComponentLoader.Context context) Creates an instance of aPropertyParsingContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertyNamerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PropertyParsingContext
public PropertyParsingContext(Object target, String propertyName, String value, @Nullable String type, ComponentLoader.Context context) Creates an instance of aPropertyParsingContextrecord class.- Parameters:
target- the value for thetargetrecord componentpropertyName- the value for thepropertyNamerecord componentvalue- the value for thevaluerecord componenttype- the value for thetyperecord componentcontext- the value for thecontextrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
propertyName
Returns the value of thepropertyNamerecord component.- Returns:
- the value of the
propertyNamerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-