Package cl.obcom.desktopfx.core
Enum Class ObjectType
- All Implemented Interfaces:
Serializable
,Comparable<ObjectType>
,Constable
Types of objects that can be stored in the
Desktop
database.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectType
forID
(int id) Returns the object type with the specified identification.int
getID()
Returns the identification of the object type.toString()
Returns the string representation of the object type.static ObjectType
Returns the enum constant of this class with the specified name.static ObjectType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Undefined (0). -
LOGIN
Login Properties (1). -
PAGE
Page Setup (2). -
SETTINGS
Plugin Settings (3). -
MENU
Menu XML (4). -
SERVICE
Services XML (5).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getID
public int getID()Returns the identification of the object type.- Returns:
- the identification of the object type.
-
toString
Returns the string representation of the object type.- Overrides:
toString
in classEnum<ObjectType>
- Returns:
- the string representation of the object type.
-
forID
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.
-