Record Class ViewParameterSignature

java.lang.Object
java.lang.Record
fr.inria.rules.integraal.views.view.ViewParameterSignature
Record Components:
missingValueHandling - the strategy to handle missing values
mandatoryAs - iff the parameter is mandatory, the value of the replacement string, empty otherwise
selection - iff this is the signature of a json object, represents the selection JSONPath query

public record ViewParameterSignature(String missingValueHandling, Optional<String> mandatoryAs, Optional<String> selection) extends Record
Describes how one view parameter behaves when a native query is built.
Author:
Florent Tornil
  • Constructor Details

    • ViewParameterSignature

      public ViewParameterSignature(String missingValueHandling, Optional<String> mandatoryAs, Optional<String> selection)
      Creates an instance of a ViewParameterSignature record class.
      Parameters:
      missingValueHandling - the value for the missingValueHandling record component
      mandatoryAs - the value for the mandatoryAs record component
      selection - the value for the selection record component
  • Method Details

    • isMandatory

      public boolean isMandatory()
      Indicates whether this parameter is mandatory.
      Returns:
      true iff this parameter is mandatory
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • missingValueHandling

      public String missingValueHandling()
      Returns the value of the missingValueHandling record component.
      Returns:
      the value of the missingValueHandling record component
    • mandatoryAs

      public Optional<String> mandatoryAs()
      Returns the value of the mandatoryAs record component.
      Returns:
      the value of the mandatoryAs record component
    • selection

      public Optional<String> selection()
      Returns the value of the selection record component.
      Returns:
      the value of the selection record component