Enum AlignmentType

  • All Implemented Interfaces:
    Serializable, Comparable<AlignmentType>

    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 Detail

      • LEFT

        public static final AlignmentType LEFT
        Left alignment type.
      • RIGHT

        public static final AlignmentType RIGHT
        Right alignment type.
      • CENTRED

        public static final AlignmentType CENTRED
        Centred alignment type.
      • JUSTIFIED

        public static final AlignmentType JUSTIFIED
        Justified alignment type.
    • Method Detail

      • values

        public static AlignmentType[] 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 (AlignmentType c : AlignmentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AlignmentType 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 name
        NullPointerException - if the argument is null
      • value

        public String value()
        Value string.
        Returns:
        the string
      • fromValue

        public static AlignmentType fromValue​(String v)
        From value alignment type.
        Parameters:
        v - the v
        Returns:
        the alignment type