Enum ChoiceMode
- java.lang.Object
-
- java.lang.Enum<ChoiceMode>
-
- com._1c.g5.v8.dt.metadata.mdclass.ChoiceMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ChoiceMode>
,org.eclipse.emf.common.util.Enumerator
public enum ChoiceMode extends Enum<ChoiceMode> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Choice Mode', and utility methods for working with them.- See Also:
MdClassPackage.getChoiceMode()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH_WAYS
The 'Both Ways' literal object.FROM_FORM
The 'From Form' literal object.QUICK_CHOICE
The 'Quick Choice' literal object.
-
Field Summary
Fields Modifier and Type Field Description static int
BOTH_WAYS_VALUE
The 'Both Ways' literal value.static int
FROM_FORM_VALUE
The 'From Form' literal value.static int
QUICK_CHOICE_VALUE
The 'Quick Choice' literal value.static List<ChoiceMode>
VALUES
A public read-only list of all the 'Choice Mode' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChoiceMode
get(int value)
Returns the 'Choice Mode' literal with the specified integer value.static ChoiceMode
get(String literal)
Returns the 'Choice Mode' literal with the specified literal value.static ChoiceMode
getByName(String name)
Returns the 'Choice Mode' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static ChoiceMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChoiceMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FROM_FORM
public static final ChoiceMode FROM_FORM
The 'From Form' literal object.- See Also:
FROM_FORM_VALUE
-
QUICK_CHOICE
public static final ChoiceMode QUICK_CHOICE
The 'Quick Choice' literal object.- See Also:
QUICK_CHOICE_VALUE
-
BOTH_WAYS
public static final ChoiceMode BOTH_WAYS
The 'Both Ways' literal object.- See Also:
BOTH_WAYS_VALUE
-
-
Field Detail
-
FROM_FORM_VALUE
public static final int FROM_FORM_VALUE
The 'From Form' literal value.- See Also:
FROM_FORM
, Constant Field Values
-
QUICK_CHOICE_VALUE
public static final int QUICK_CHOICE_VALUE
The 'Quick Choice' literal value.- See Also:
QUICK_CHOICE
, Constant Field Values
-
BOTH_WAYS_VALUE
public static final int BOTH_WAYS_VALUE
The 'Both Ways' literal value.- See Also:
BOTH_WAYS
, Constant Field Values
-
VALUES
public static final List<ChoiceMode> VALUES
A public read-only list of all the 'Choice Mode' enumerators.
-
-
Method Detail
-
values
public static ChoiceMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChoiceMode c : ChoiceMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChoiceMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static ChoiceMode get(String literal)
Returns the 'Choice Mode' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static ChoiceMode getByName(String name)
Returns the 'Choice Mode' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static ChoiceMode get(int value)
Returns the 'Choice Mode' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
public String toString()
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<ChoiceMode>
-
-