public enum ThingCategory extends java.lang.Enum<ThingCategory>
Enum Constant and Description |
---|
BUILTIN
Builtin category.
|
EXTERNAL
External category.
|
UNDEFINED
Undefined category.
|
Modifier and Type | Method and Description |
---|---|
static ThingCategory |
getThingCategory(java.lang.String categoryName)
Returns
ThingCategory of the given String . |
java.lang.String |
getThingCategoryAsString()
Returns
String representation of ThingCategory |
static ThingCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThingCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThingCategory BUILTIN
public static final ThingCategory EXTERNAL
public static final ThingCategory UNDEFINED
public static ThingCategory[] values()
for (ThingCategory c : ThingCategory.values()) System.out.println(c);
public static ThingCategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NonNull public java.lang.String getThingCategoryAsString()
String
representation of ThingCategory
String
thingCategorypublic static ThingCategory getThingCategory(java.lang.String categoryName)
ThingCategory
of the given String
.
Returning object could be "BUILTIN" or "EXTERNAL". If none of these returns "UNDEFINED".categoryName
- : String
representation of ThingCategory
ThingCategory
named as @param, default is UNDEFINED
}