Enum JSONAttribute.Type

java.lang.Object
java.lang.Enum<JSONAttribute.Type>
de.ralleytn.simple.json.serialization.JSONAttribute.Type
All Implemented Interfaces:
Serializable, Comparable<JSONAttribute.Type>, java.lang.constant.Constable
Enclosing class:
JSONAttribute

public static enum JSONAttribute.Type extends Enum<JSONAttribute.Type>
Represents the type of an attribute. Not the data type but more if it's read only or not.
Since:
1.0.0
Version:
1.0.0
Author:
Ralph Niemitz/RalleYTN(ralph.niemitz@gmx.de)
  • Enum Constant Details

    • GETTER

      public static final JSONAttribute.Type GETTER
      Marks the attribute for reading.
      Since:
      1.0.0
    • SETTER

      public static final JSONAttribute.Type SETTER
      Marks the attribute for writing.
      Since:
      1.0.0
  • Method Details

    • values

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

      public static JSONAttribute.Type valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null