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")

public record StepFieldRef(String stepRef, String fieldRef) extends Record
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 Details

    • StepFieldRef

      public StepFieldRef(String stepRef, String fieldRef)
      Compact constructor for validation.
      Parameters:
      stepRef - The step reference identifier
      fieldRef - The field reference identifier
  • Method Details

    • parse

      public static StepFieldRef parse(String stepFieldRef)
      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 null if parsing fails
    • 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.
    • stepRef

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

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