Package ch.so.agi.mcp.constraint
Record Class ConstraintModelSynthesizer.ReferenceBinding
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintModelSynthesizer.ReferenceBinding
- Enclosing class:
ConstraintModelSynthesizer
public static record ConstraintModelSynthesizer.ReferenceBinding(ConstraintExpression.Reference reference, ConstraintModelSynthesizer.ValueDomain domain, String attributeName, @Nullable ConstraintModelSynthesizer.AssociationBinding association, List<ConstraintModelSynthesizer.NavigationBinding> navigation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceBinding(ConstraintExpression.Reference reference, ConstraintModelSynthesizer.ValueDomain domain, String attributeName, @Nullable ConstraintModelSynthesizer.AssociationBinding association) ReferenceBinding(ConstraintExpression.Reference reference, ConstraintModelSynthesizer.ValueDomain domain, String attributeName, @Nullable ConstraintModelSynthesizer.AssociationBinding association, List<ConstraintModelSynthesizer.NavigationBinding> navigation) Creates an instance of aReferenceBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationrecord component.booleanReturns the value of theattributeNamerecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenavigationrecord component.Returns the value of thereferencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReferenceBinding
public ReferenceBinding(ConstraintExpression.Reference reference, ConstraintModelSynthesizer.ValueDomain domain, String attributeName, @Nullable ConstraintModelSynthesizer.AssociationBinding association, List<ConstraintModelSynthesizer.NavigationBinding> navigation) Creates an instance of aReferenceBindingrecord class.- Parameters:
reference- the value for thereferencerecord componentdomain- the value for thedomainrecord componentattributeName- the value for theattributeNamerecord componentassociation- the value for theassociationrecord componentnavigation- the value for thenavigationrecord component
-
ReferenceBinding
public ReferenceBinding(ConstraintExpression.Reference reference, ConstraintModelSynthesizer.ValueDomain domain, String attributeName, @Nullable ConstraintModelSynthesizer.AssociationBinding association)
-
-
Method Details
-
associationPath
public boolean associationPath() -
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). -
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
attributeName
Returns the value of theattributeNamerecord component.- Returns:
- the value of the
attributeNamerecord component
-
association
Returns the value of theassociationrecord component.- Returns:
- the value of the
associationrecord component
-