Package tools.refinery.generator
Record Class ModelFacadeResult.PropagationRejected
java.lang.Object
java.lang.Record
tools.refinery.generator.ModelFacadeResult.PropagationRejected
- All Implemented Interfaces:
ModelFacadeResult
,ModelFacadeResult.Rejected
- Enclosing interface:
ModelFacadeResult
public static record ModelFacadeResult.PropagationRejected(PropagationRejectedResult propagationResult)
extends Record
implements ModelFacadeResult.Rejected
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.generator.ModelFacadeResult
ModelFacadeResult.ConcretizationRejected, ModelFacadeResult.PropagationRejected, ModelFacadeResult.Rejected, ModelFacadeResult.Success
-
Field Summary
Fields inherited from interface tools.refinery.generator.ModelFacadeResult
SUCCESS
-
Constructor Summary
ConstructorDescriptionPropagationRejected
(PropagationRejectedResult propagationResult) Creates an instance of aPropagationRejected
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
Returns the value of thepropagationResult
record component.reason()
final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.generator.ModelFacadeResult
isRejected
Methods inherited from interface tools.refinery.generator.ModelFacadeResult.Rejected
throwIfRejected
-
Constructor Details
-
PropagationRejected
Creates an instance of aPropagationRejected
record class.- Parameters:
propagationResult
- the value for thepropagationResult
record component
-
-
Method Details
-
isPropagationRejected
public boolean isPropagationRejected()- Specified by:
isPropagationRejected
in interfaceModelFacadeResult
-
isConcretizationRejected
public boolean isConcretizationRejected()- Specified by:
isConcretizationRejected
in interfaceModelFacadeResult
-
formatMessage
- Specified by:
formatMessage
in interfaceModelFacadeResult.Rejected
-
reason
- Specified by:
reason
in interfaceModelFacadeResult.Rejected
-
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)
. -
propagationResult
Returns the value of thepropagationResult
record component.- Returns:
- the value of the
propagationResult
record component
-