Class StringCheckGrader
-
- All Implemented Interfaces:
public final class StringCheckGrader
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
StringCheckGrader.Builder
A builder for StringCheckGrader.
public final class
StringCheckGrader.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 StringCheckGrader.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<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.Builder
toBuilder()
final StringCheckGrader
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static StringCheckGrader.Builder
builder()
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()
-
-
-
-