Bold360 and BoldChat Developer Center

FormFieldType

com.boldchat.visitor.api

Enum FormFieldType

  • java.lang.Object
    • java.lang.Enum<FormFieldType>
      • com.boldchat.visitor.api.FormFieldType
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FormFieldType>


    public enum FormFieldType
    extends java.lang.Enum<FormFieldType>
    The type of a form field.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      Email
      The form should allow the input of arbitrary text resembling an email address.
      Phone
      The form should allow the input of arbitrary text resembling a phone number.
      Radio
      The form should show a radio field with a pre-defined set of options.
      Rating
      The form should show a rating selection with possible values 1-5.
      Select
      The form should show a selection field with a pre-defined set of options.
      Text
      The form should allow the input of arbitrary text.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static FormFieldType getFormFieldType(java.lang.String formFieldType)
      Gets the FormFieldType from the string value.
      static FormFieldType valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static FormFieldType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Text

        public static final FormFieldType Text
        The form should allow the input of arbitrary text.
      • Select

        public static final FormFieldType Select
        The form should show a selection field with a pre-defined set of options.
      • Radio

        public static final FormFieldType Radio
        The form should show a radio field with a pre-defined set of options. It is also acceptable to treat this the same as the Select type.
      • Rating

        public static final FormFieldType Rating
        The form should show a rating selection with possible values 1-5. Fractions are not allowed.
      • Phone

        public static final FormFieldType Phone
        The form should allow the input of arbitrary text resembling a phone number. This can be treated the same as Text but should restrict the keyboard if possible.
      • Email

        public static final FormFieldType Email
        The form should allow the input of arbitrary text resembling an email address. This can be treated the same as Text but should restrict the keyboard if possible.
    • Method Detail

      • values

        public static FormFieldType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FormFieldType c : FormFieldType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FormFieldType valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getFormFieldType

        public static FormFieldType getFormFieldType(java.lang.String formFieldType)
        Gets the FormFieldType from the string value.
        Parameters:
        formFieldType - The string value to convert to a type.
        Returns:
        The form field type, or Text if it was unrecognized.