Enum Class ObjectType

java.lang.Object
java.lang.Enum<ObjectType>
cl.obcom.desktopfx.core.ObjectType
All Implemented Interfaces:
Serializable, Comparable<ObjectType>, Constable

public enum ObjectType extends Enum<ObjectType>
Types of objects that can be stored in the Desktop database.
  • Enum Constant Details

    • UNDEFINED

      public static final ObjectType UNDEFINED
      Undefined (0).
    • LOGIN

      public static final ObjectType LOGIN
      Login Properties (1).
    • PAGE

      public static final ObjectType PAGE
      Page Setup (2).
    • SETTINGS

      public static final ObjectType SETTINGS
      Plugin Settings (3).
    • SERVICE

      public static final ObjectType SERVICE
      Services XML (5).
  • Method Details

    • values

      public static ObjectType[] 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 ObjectType 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
    • getID

      public int getID()
      Returns the identification of the object type.
      Returns:
      the identification of the object type.
    • toString

      public String toString()
      Returns the string representation of the object type.
      Overrides:
      toString in class Enum<ObjectType>
      Returns:
      the string representation of the object type.
    • forID

      public static ObjectType forID(int id)
      Returns the object type with the specified identification.
      Parameters:
      id - the identification of the required object type.
      Returns:
      the object type or UNDEFINED if not found.