public enum TestEnumModel extends Enum<TestEnumModel> implements HybrisEnumValue
HybrisEnumValue interface. The intention
is to use this for test purposes to avoid dependencies
on other projects.| Enum Constant and Description |
|---|
TEST_ENUM1 |
TEST_ENUM2 |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Gets the code of this enum value.
|
String |
getType()
Gets the type this enum value belongs to.
|
static TestEnumModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestEnumModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestEnumModel TEST_ENUM1
public static final TestEnumModel TEST_ENUM2
public static TestEnumModel[] values()
for (TestEnumModel c : TestEnumModel.values()) System.out.println(c);
public static TestEnumModel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getType()
HybrisEnumValuegetType in interface HybrisEnumValuepublic String getCode()
HybrisEnumValuegetCode in interface HybrisEnumValueCopyright © 2000-2016 SAP SE. All Rights Reserved.