public enum AlignmentType extends Enum<AlignmentType>
Java class for AlignmentType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AlignmentType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Left"/>
<enumeration value="Right"/>
<enumeration value="Centred"/>
<enumeration value="Justified"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CENTRED
Centred alignment type.
|
JUSTIFIED
Justified alignment type.
|
LEFT
Left alignment type.
|
RIGHT
Right alignment type.
|
| Modifier and Type | Method and Description |
|---|---|
static AlignmentType |
fromValue(String v)
From value alignment type.
|
String |
value()
Value string.
|
static AlignmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlignmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlignmentType LEFT
public static final AlignmentType RIGHT
public static final AlignmentType CENTRED
public static final AlignmentType JUSTIFIED
public static AlignmentType[] values()
for (AlignmentType c : AlignmentType.values()) System.out.println(c);
public static AlignmentType 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 String value()
public static AlignmentType fromValue(String v)
v - the vCopyright © 2022. All rights reserved.