Enum Class ParseStyle

java.lang.Object
java.lang.Enum<ParseStyle>
com.streambase.sb.ParseStyle
All Implemented Interfaces:
Serializable, Comparable<ParseStyle>, Constable

public enum ParseStyle extends Enum<ParseStyle>
For use denoting the ParseStyle for tuple/JSON processing.
  • Enum Constant Details

    • STRICT

      public static final ParseStyle STRICT
      Specifies that an exception should be thrown when fields are missing from tuple's schema.
    • LOOSE

      public static final ParseStyle LOOSE
      Specifies that fields may remain blank or missing from tuple's schema.
  • Method Details

    • values

      public static ParseStyle[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParseStyle valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null