public enum TestEnumModel extends java.lang.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 |
|---|---|
java.lang.String |
getCode()
Gets the code of this enum value.
|
java.lang.String |
getType()
Gets the type this enum value belongs to.
|
static TestEnumModel |
valueOf(java.lang.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(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 nullpublic java.lang.String getType()
HybrisEnumValuegetType in interface HybrisEnumValuepublic java.lang.String getCode()
HybrisEnumValuegetCode in interface HybrisEnumValueCopyright © 2017 SAP SE. All Rights Reserved.