Package com._1c.g5.v8.dt.moxel.content
Enum TextPlacement
- java.lang.Object
-
- java.lang.Enum<TextPlacement>
-
- com._1c.g5.v8.dt.moxel.content.TextPlacement
-
- All Implemented Interfaces:
Serializable
,Comparable<TextPlacement>
,org.eclipse.emf.common.util.Enumerator
public enum TextPlacement extends Enum<TextPlacement> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Text Placement', and utility methods for working with them.- See Also:
ContentPackage.getTextPlacement()
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTO_VALUE
The 'Auto' literal value.static int
BLOCK_VALUE
The 'Block' literal value.static int
CUT_VALUE
The 'Cut' literal value.static List<TextPlacement>
VALUES
A public read-only list of all the 'Text Placement' enumerators.static int
WRAP_VALUE
The 'Wrap' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextPlacement
get(int value)
Returns the 'Text Placement' literal with the specified integer value.static TextPlacement
get(String literal)
Returns the 'Text Placement' literal with the specified literal value.static TextPlacement
getByName(String name)
Returns the 'Text Placement' 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 TextPlacement
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextPlacement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final TextPlacement AUTO
The 'Auto' literal object.- See Also:
AUTO_VALUE
-
CUT
public static final TextPlacement CUT
The 'Cut' literal object.- See Also:
CUT_VALUE
-
BLOCK
public static final TextPlacement BLOCK
The 'Block' literal object.- See Also:
BLOCK_VALUE
-
WRAP
public static final TextPlacement WRAP
The 'Wrap' literal object.- See Also:
WRAP_VALUE
-
-
Field Detail
-
AUTO_VALUE
public static final int AUTO_VALUE
The 'Auto' literal value.- See Also:
AUTO
, Constant Field Values
-
CUT_VALUE
public static final int CUT_VALUE
The 'Cut' literal value.- See Also:
CUT
, Constant Field Values
-
BLOCK_VALUE
public static final int BLOCK_VALUE
The 'Block' literal value.- See Also:
BLOCK
, Constant Field Values
-
WRAP_VALUE
public static final int WRAP_VALUE
The 'Wrap' literal value.- See Also:
WRAP
, Constant Field Values
-
VALUES
public static final List<TextPlacement> VALUES
A public read-only list of all the 'Text Placement' enumerators.
-
-
Method Detail
-
values
public static TextPlacement[] 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 (TextPlacement c : TextPlacement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextPlacement 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 TextPlacement get(String literal)
Returns the 'Text Placement' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static TextPlacement getByName(String name)
Returns the 'Text Placement' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static TextPlacement get(int value)
Returns the 'Text Placement' 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<TextPlacement>
-
-