Record Class ViewParameterSignature
java.lang.Object
java.lang.Record
fr.inria.rules.integraal.views.view.ViewParameterSignature
- Record Components:
missingValueHandling- the strategy to handle missing valuesmandatoryAs- iff the parameter is mandatory, the value of the replacement string, empty otherwiseselection- iff this is the signature of a json object, represents the selection JSONPath query
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanIndicates whether this parameter is mandatory.Returns the value of themandatoryAsrecord component.Returns the value of themissingValueHandlingrecord component.Returns the value of theselectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ViewParameterSignature
public ViewParameterSignature(String missingValueHandling, Optional<String> mandatoryAs, Optional<String> selection) Creates an instance of aViewParameterSignaturerecord class.- Parameters:
missingValueHandling- the value for themissingValueHandlingrecord componentmandatoryAs- the value for themandatoryAsrecord componentselection- the value for theselectionrecord component
-
-
Method Details
-
isMandatory
public boolean isMandatory()Indicates whether this parameter is mandatory.- Returns:
- true iff this parameter is mandatory
-
toString
-
hashCode
-
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). -
missingValueHandling
Returns the value of themissingValueHandlingrecord component.- Returns:
- the value of the
missingValueHandlingrecord component
-
mandatoryAs
Returns the value of themandatoryAsrecord component.- Returns:
- the value of the
mandatoryAsrecord component
-
selection
-