Package ch.so.agi.mcp.constraint
Record Class ConstraintModelSynthesizer.AssociationBinding
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintModelSynthesizer.AssociationBinding
- Enclosing class:
ConstraintModelSynthesizer
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationBinding(String associationFqn, String roleName, String oppositeRoleName, String targetClassFqn, long minimum, long maximum, boolean unbounded) AssociationBinding(String associationFqn, String roleName, String oppositeRoleName, String targetClassFqn, long minimum, long maximum, boolean unbounded, boolean lightweight) Creates an instance of aAssociationBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationFqnrecord component.inteffectiveMaximum(int cap) 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 thelightweightrecord component.longmaximum()Returns the value of themaximumrecord component.longminimum()Returns the value of theminimumrecord component.Returns the value of theoppositeRoleNamerecord component.roleName()Returns the value of theroleNamerecord component.Returns the value of thetargetClassFqnrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunboundedrecord component.
-
Constructor Details
-
AssociationBinding
public AssociationBinding(String associationFqn, String roleName, String oppositeRoleName, String targetClassFqn, long minimum, long maximum, boolean unbounded, boolean lightweight) Creates an instance of aAssociationBindingrecord class.- Parameters:
associationFqn- the value for theassociationFqnrecord componentroleName- the value for theroleNamerecord componentoppositeRoleName- the value for theoppositeRoleNamerecord componenttargetClassFqn- the value for thetargetClassFqnrecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentunbounded- the value for theunboundedrecord componentlightweight- the value for thelightweightrecord component
-
AssociationBinding
-
-
Method Details
-
effectiveMaximum
public int effectiveMaximum(int cap) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
associationFqn
Returns the value of theassociationFqnrecord component.- Returns:
- the value of the
associationFqnrecord component
-
roleName
Returns the value of theroleNamerecord component.- Returns:
- the value of the
roleNamerecord component
-
oppositeRoleName
Returns the value of theoppositeRoleNamerecord component.- Returns:
- the value of the
oppositeRoleNamerecord component
-
targetClassFqn
Returns the value of thetargetClassFqnrecord component.- Returns:
- the value of the
targetClassFqnrecord component
-
minimum
public long minimum()Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
maximum
public long maximum()Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-
unbounded
public boolean unbounded()Returns the value of theunboundedrecord component.- Returns:
- the value of the
unboundedrecord component
-
lightweight
public boolean lightweight()Returns the value of thelightweightrecord component.- Returns:
- the value of the
lightweightrecord component
-