Record Class ExtensionRegistration
java.lang.Object
java.lang.Record
com.yworkflow.definition.model.extension.ExtensionRegistration
- Record Components:
type- the type of extension registrationvalue- the value or identifier for the extension
Represents a registration for a workflow extension. ExtensionRegistration provides a way to
register extensions with the workflow engine, specifying the type of extension and its value or
identifier.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionRegistration(String type, String value) Creates an instance of aExtensionRegistrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionRegistrationCreates an alias registration for an extension.static ExtensionRegistrationempty()Creates an empty registration that represents no extension.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Checks if this registration is empty (has no type or value).static ExtensionRegistrationCreates a script registration for an extension.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
-
Method Details
-
alias
Creates an alias registration for an extension.- Parameters:
value- the alias value- Returns:
- a new ExtensionRegistration with type "alias"
-
script
Creates a script registration for an extension.- Parameters:
value- the script value or identifier- Returns:
- a new ExtensionRegistration with type "script"
-
empty
Creates an empty registration that represents no extension.- Returns:
- a new ExtensionRegistration with null type and value
-
isEmpty
public boolean isEmpty()Checks if this registration is empty (has no type or value).- Returns:
- true if both type and value are null, false otherwise
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-