Package ch.so.agi.mcp.constraint
Record Class ConstraintModelSynthesizer.NavigationBinding
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintModelSynthesizer.NavigationBinding
- Enclosing class:
ConstraintModelSynthesizer
public static record ConstraintModelSynthesizer.NavigationBinding(ConstraintModelSynthesizer.NavigationKind kind, String name, String targetClassFqn, long minimum, long maximum, boolean unbounded, @Nullable ConstraintModelSynthesizer.AssociationBinding association)
extends Record
One navigational step before the scalar endpoint attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionNavigationBinding(ConstraintModelSynthesizer.NavigationKind kind, String name, String targetClassFqn, long minimum, long maximum, boolean unbounded, @Nullable ConstraintModelSynthesizer.AssociationBinding association) Creates an instance of aNavigationBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassociationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.longmaximum()Returns the value of themaximumrecord component.longminimum()Returns the value of theminimumrecord component.booleanname()Returns the value of thenamerecord 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
-
Method Details
-
multiValued
public boolean multiValued() -
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 '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord 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
-
association
Returns the value of theassociationrecord component.- Returns:
- the value of the
associationrecord component
-