Package com.axelor.workflow.compiler
Record Class Compilation
java.lang.Object
java.lang.Record
com.axelor.workflow.compiler.Compilation
The result of compiling a definition: a plan and no violations, or the complete list of
structural violations and no plan.
-
Constructor Summary
ConstructorsConstructorDescriptionCompilation(WorkflowPlan plan, List<Violation> violations) Creates an instance of aCompilationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanok()plan()Returns the value of theplanrecord component.planOrThrow(String workflow) The plan, for callers that need a structurally valid definition; throws namingworkflowotherwise.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationsrecord component.
-
Constructor Details
-
Compilation
Creates an instance of aCompilationrecord class.- Parameters:
plan- the value for theplanrecord componentviolations- the value for theviolationsrecord component
-
-
Method Details
-
ok
public boolean ok() -
planOrThrow
The plan, for callers that need a structurally valid definition; throws namingworkflowotherwise. -
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). -
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-