public enum DmtTestEnum extends Enum<DmtTestEnum> implements DmcEnumIF
Generated from the dmt schema at version 0.1
This code was auto-generated by the dmogenerator utility and shouldn't be altered manually! Generated from: org.dmd.dms.util.DmoEnumFormatter.dumpEnum(DmoEnumFormatter.java:100)
| Modifier and Type | Method and Description |
|---|---|
String |
displayValue()
Returns the display value of this enum value as a String.
|
static DmtTestEnum |
get(int code)
Returns the enum value of the specified int or null if it's not valid.
|
static DmtTestEnum |
get(String str)
Returns a value for this enum or throws an exception if the String value isn't
a valid member of this enum.
|
int |
intValue()
Returns the value of this enum value as an int.
|
static DmtTestEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DmtTestEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DmtTestEnum UNKNOWN
public static final DmtTestEnum TEST1
public static final DmtTestEnum TEST2
public static final DmtTestEnum TEST3
public static DmtTestEnum[] values()
for (DmtTestEnum c : DmtTestEnum.values()) System.out.println(c);
public static DmtTestEnum 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 int intValue()
public String displayValue()
displayValue in interface DmcEnumIFpublic static DmtTestEnum get(int code)
public static DmtTestEnum get(String str)
Copyright © 2023. All rights reserved.