Package io.dialob.session.engine
Class Utils
java.lang.Object
io.dialob.session.engine.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.dialob.api.form.FormValidationErrorcreateError(String itemId, String message) static booleanisContextVariable(String type) static booleanstatic booleanisProgramVariable(String type) static booleanisQuestionType(ItemState itemState) static booleanisRowgroup(String type) static booleanisVariable(String type) static Objectstatic Objectstatic BigIntegerreadBigInteger(com.google.protobuf.CodedInputStream input) static DatereadNullableDate(com.google.protobuf.CodedInputStream input) static StringreadNullableString(com.google.protobuf.CodedInputStream input) static ObjectreadObjectValue(com.google.protobuf.CodedInputStream input) static io.dialob.api.proto.ActionItemtoActionItem(ItemState itemState, UnaryOperator<io.dialob.api.proto.ImmutableActionItem.Builder> post) static io.dialob.api.questionnaire.ErrortoError(ErrorState updated) static io.dialob.api.proto.ValueSettoValueSet(ValueSetState valueSetState) static ObjectvalidateDefaultValue(String id, ValueType valueType, Object value, Consumer<io.dialob.api.form.FormValidationError> errorListener) static voidwriteBigInteger(com.google.protobuf.CodedOutputStream output, BigInteger value) static voidwriteNullableDate(com.google.protobuf.CodedOutputStream output, Date date) static voidwriteNullableString(com.google.protobuf.CodedOutputStream output, String string) static voidwriteObjectValue(com.google.protobuf.CodedOutputStream output, Object value)
-
Method Details
-
mapQuestionTypeToValueType
-
isVariable
-
isContextVariable
-
isProgramVariable
-
isNote
-
isRowgroup
-
isQuestionType
-
parse
-
parse
-
toValueSet
@NonNull public static io.dialob.api.proto.ValueSet toValueSet(@NonNull ValueSetState valueSetState) -
toError
-
toActionItem
@NonNull public static io.dialob.api.proto.ActionItem toActionItem(@NonNull ItemState itemState, UnaryOperator<io.dialob.api.proto.ImmutableActionItem.Builder> post) -
writeNullableString
public static void writeNullableString(@NonNull com.google.protobuf.CodedOutputStream output, String string) throws IOException - Throws:
IOException
-
readNullableString
@Nullable public static String readNullableString(@NonNull com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
writeNullableDate
public static void writeNullableDate(@NonNull com.google.protobuf.CodedOutputStream output, Date date) throws IOException - Throws:
IOException
-
readNullableDate
public static Date readNullableDate(@NonNull com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
writeObjectValue
public static void writeObjectValue(@NonNull com.google.protobuf.CodedOutputStream output, Object value) throws IOException - Throws:
IOException
-
writeBigInteger
public static void writeBigInteger(@NonNull com.google.protobuf.CodedOutputStream output, @NonNull BigInteger value) throws IOException - Throws:
IOException
-
readObjectValue
public static Object readObjectValue(@NonNull com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
readBigInteger
public static BigInteger readBigInteger(@NonNull com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
validateDefaultValue
-
createError
-