Enum Class ParseType

java.lang.Object
java.lang.Enum<ParseType>
de.linusdev.data.ParseType
All Implemented Interfaces:
Serializable, Comparable<ParseType>, Constable

@Internal public enum ParseType extends Enum<ParseType>
How a AbstractData will be parsed depends on its ParseType
  • Enum Constant Details

    • NORMAL

      public static final ParseType NORMAL
      AbstractData will be parsed to a normal json-object
    • CONTENT_ONLY

      public static final ParseType CONTENT_ONLY
      only the entries of the AbstractData will be parsed. That means the entry will not be wrapped by a json-object. If more than one entry is present, they will be separated by a comma.
  • Method Details

    • values

      public static ParseType[] 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 ParseType 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