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 Details

    • NavigationBinding

      public NavigationBinding(ConstraintModelSynthesizer.NavigationKind kind, String name, String targetClassFqn, long minimum, long maximum, boolean unbounded, @Nullable ConstraintModelSynthesizer.AssociationBinding association)
      Creates an instance of a NavigationBinding record class.
      Parameters:
      kind - the value for the kind record component
      name - the value for the name record component
      targetClassFqn - the value for the targetClassFqn record component
      minimum - the value for the minimum record component
      maximum - the value for the maximum record component
      unbounded - the value for the unbounded record component
      association - the value for the association record component
  • Method Details

    • multiValued

      public boolean multiValued()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • targetClassFqn

      public String targetClassFqn()
      Returns the value of the targetClassFqn record component.
      Returns:
      the value of the targetClassFqn record component
    • minimum

      public long minimum()
      Returns the value of the minimum record component.
      Returns:
      the value of the minimum record component
    • maximum

      public long maximum()
      Returns the value of the maximum record component.
      Returns:
      the value of the maximum record component
    • unbounded

      public boolean unbounded()
      Returns the value of the unbounded record component.
      Returns:
      the value of the unbounded record component
    • association

      public @Nullable ConstraintModelSynthesizer.AssociationBinding association()
      Returns the value of the association record component.
      Returns:
      the value of the association record component