Class StringCheckGrader
-
- All Implemented Interfaces:
public final class StringCheckGraderA 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 classStringCheckGrader.BuilderA builder for StringCheckGrader.
public final classStringCheckGrader.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 StringCheckGrader.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<StringCheckGrader.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 StringCheckGrader.BuildertoBuilder()final StringCheckGradervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static StringCheckGrader.Builderbuilder()Returns a mutable builder for constructing an instance of StringCheckGrader. -
-
Method Detail
-
operation
final StringCheckGrader.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<StringCheckGrader.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 StringCheckGrader.Builder toBuilder()
-
validate
final StringCheckGrader validate()
-
builder
final static StringCheckGrader.Builder builder()
Returns a mutable builder for constructing an instance of StringCheckGrader.
The following fields are required:
.input() .name() .operation() .reference()
-
-
-
-