Class EvalStringCheckGrader
-
- All Implemented Interfaces:
public final class EvalStringCheckGraderA 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 classEvalStringCheckGrader.BuilderA builder for EvalStringCheckGrader.
public final classEvalStringCheckGrader.OperationThe string check operation to perform. One of
eq,ne,like, orilike.
-
Method Summary
Modifier and Type Method Description final Stringinput()The input text. final Stringname()The name of the grader. final EvalStringCheckGrader.Operationoperation()The string check operation to perform. final Stringreference()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.BuildertoBuilder()final EvalStringCheckGradervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalStringCheckGrader.Builderbuilder()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()
-
-
-
-