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
ConstructorDescriptionPropertyParsingContext
(Object target, String propertyName, String value, String type, ComponentLoader.Context context) Creates an instance of aPropertyParsingContext
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()
Returns the value of thecontext
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepropertyName
record component.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
PropertyParsingContext
public PropertyParsingContext(Object target, String propertyName, String value, @Nullable String type, ComponentLoader.Context context) Creates an instance of aPropertyParsingContext
record class.- Parameters:
target
- the value for thetarget
record componentpropertyName
- the value for thepropertyName
record componentvalue
- the value for thevalue
record componenttype
- the value for thetype
record componentcontext
- the value for thecontext
record 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 thetarget
record component.- Returns:
- the value of the
target
record component
-
propertyName
Returns the value of thepropertyName
record component.- Returns:
- the value of the
propertyName
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
context
Returns the value of thecontext
record component.- Returns:
- the value of the
context
record component
-