Record Class StepFieldRef
java.lang.Object
java.lang.Record
com.bonitasoft.processbuilder.records.StepFieldRef
- Record Components:
stepRef- The step reference identifier (e.g., "step_xxx")fieldRef- The field reference identifier (e.g., "field_yyy")
A record representing a parsed reference to a step and field.
This record is typically created by parsing a string in the format "step_xxx:field_yyy" where stepRef and fieldRef are the respective identifiers.
- Since:
- 1.0
- Author:
- Bonitasoft
-
Constructor Summary
ConstructorsConstructorDescriptionStepFieldRef(String stepRef, String fieldRef) Compact constructor for validation. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fieldRef()Returns the value of thefieldRefrecord component.final inthashCode()Returns a hash code value for this object.static StepFieldRefParses a string in the format "step_xxx:field_yyy" and creates a StepFieldRef record.stepRef()Returns the value of thestepRefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StepFieldRef
Compact constructor for validation.- Parameters:
stepRef- The step reference identifierfieldRef- The field reference identifier
-
-
Method Details
-
parse
Parses a string in the format "step_xxx:field_yyy" and creates a StepFieldRef record.The expected format is two parts separated by a colon (:), where the first part is the step reference and the second part is the field reference. Both parts will be trimmed of leading and trailing whitespace.
- Parameters:
stepFieldRef- The string to parse in format "step_xxx:field_yyy"- Returns:
- A StepFieldRef record with parsed stepRef and fieldRef, or
nullif parsing fails
-
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). -
stepRef
Returns the value of thestepRefrecord component.- Returns:
- the value of the
stepRefrecord component
-
fieldRef
Returns the value of thefieldRefrecord component.- Returns:
- the value of the
fieldRefrecord component
-