Class EvalStringCheckGrader
-
- All Implemented Interfaces:
public final class EvalStringCheckGrader
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalStringCheckGrader.Builder
A builder for EvalStringCheckGrader.
public final class
EvalStringCheckGrader.Operation
The string check operation to perform. One of
eq
,ne
,like
, orilike
.
-
Method Summary
Modifier and Type Method Description final String
input()
The input text. final String
name()
The name of the grader. final EvalStringCheckGrader.Operation
operation()
The string check operation to perform. final String
reference()
The reference text. final JsonValue
_type()
The object type, which is always string_check
.final JsonField<String>
_input()
Returns the raw JSON value of input. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<EvalStringCheckGrader.Operation>
_operation()
Returns the raw JSON value of operation. final JsonField<String>
_reference()
Returns the raw JSON value of reference. final Map<String, JsonValue>
_additionalProperties()
final EvalStringCheckGrader.Builder
toBuilder()
final EvalStringCheckGrader
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalStringCheckGrader.Builder
builder()
Returns a mutable builder for constructing an instance of EvalStringCheckGrader. -
-
Method Detail
-
operation
final EvalStringCheckGrader.Operation operation()
The string check operation to perform. One of
eq
,ne
,like
, orilike
.
-
_type
final JsonValue _type()
The object type, which is always
string_check
.Expected to always return the following:
JsonValue.from("string_check")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_input
final JsonField<String> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_operation
final JsonField<EvalStringCheckGrader.Operation> _operation()
Returns the raw JSON value of operation.
Unlike operation, this method doesn't throw if the JSON field has an unexpected type.
-
_reference
final JsonField<String> _reference()
Returns the raw JSON value of reference.
Unlike reference, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalStringCheckGrader.Builder toBuilder()
-
validate
final EvalStringCheckGrader validate()
-
builder
final static EvalStringCheckGrader.Builder builder()
Returns a mutable builder for constructing an instance of EvalStringCheckGrader.
The following fields are required:
.input() .name() .operation() .reference()
-
-
-
-