Package com._1c.g5.v8.dt.form.model
Enum TextBreakMode
- java.lang.Object
-
- java.lang.Enum<TextBreakMode>
-
- com._1c.g5.v8.dt.form.model.TextBreakMode
-
- All Implemented Interfaces:
Serializable
,Comparable<TextBreakMode>
,org.eclipse.emf.common.util.Enumerator
public enum TextBreakMode extends Enum<TextBreakMode> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Text Break Mode', and utility methods for working with them.- See Also:
FormPackage.getTextBreakMode()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHAR_BREAK
The 'Char Break' literal object.END_ELLIPSIS
The 'End Ellipsis' literal object.WORD_BREAK
The 'Word Break' literal object.
-
Field Summary
Fields Modifier and Type Field Description static int
CHAR_BREAK_VALUE
The 'Char Break' literal value.static int
END_ELLIPSIS_VALUE
The 'End Ellipsis' literal value.static List<TextBreakMode>
VALUES
A public read-only list of all the 'Text Break Mode' enumerators.static int
WORD_BREAK_VALUE
The 'Word Break' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextBreakMode
get(int value)
Returns the 'Text Break Mode' literal with the specified integer value.static TextBreakMode
get(String literal)
Returns the 'Text Break Mode' literal with the specified literal value.static TextBreakMode
getByName(String name)
Returns the 'Text Break 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 TextBreakMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextBreakMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
END_ELLIPSIS
public static final TextBreakMode END_ELLIPSIS
The 'End Ellipsis' literal object.- See Also:
END_ELLIPSIS_VALUE
-
WORD_BREAK
public static final TextBreakMode WORD_BREAK
The 'Word Break' literal object.- See Also:
WORD_BREAK_VALUE
-
CHAR_BREAK
public static final TextBreakMode CHAR_BREAK
The 'Char Break' literal object.- See Also:
CHAR_BREAK_VALUE
-
-
Field Detail
-
END_ELLIPSIS_VALUE
public static final int END_ELLIPSIS_VALUE
The 'End Ellipsis' literal value.- See Also:
END_ELLIPSIS
, Constant Field Values
-
WORD_BREAK_VALUE
public static final int WORD_BREAK_VALUE
The 'Word Break' literal value.- See Also:
WORD_BREAK
, Constant Field Values
-
CHAR_BREAK_VALUE
public static final int CHAR_BREAK_VALUE
The 'Char Break' literal value.- See Also:
CHAR_BREAK
, Constant Field Values
-
VALUES
public static final List<TextBreakMode> VALUES
A public read-only list of all the 'Text Break Mode' enumerators.
-
-
Method Detail
-
values
public static TextBreakMode[] 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 (TextBreakMode c : TextBreakMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextBreakMode 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 TextBreakMode get(String literal)
Returns the 'Text Break Mode' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static TextBreakMode getByName(String name)
Returns the 'Text Break Mode' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static TextBreakMode get(int value)
Returns the 'Text Break 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<TextBreakMode>
-
-