Enum ExtensionPlacement

java.lang.Object
java.lang.Enum<ExtensionPlacement>
org.apache.fop.render.afp.extensions.ExtensionPlacement
All Implemented Interfaces:
Serializable, Comparable<ExtensionPlacement>, java.lang.constant.Constable

public enum ExtensionPlacement extends Enum<ExtensionPlacement>
An enumeration for placement instruction for AFP extensions.
  • Enum Constant Details

    • DEFAULT

      public static final ExtensionPlacement DEFAULT
      Place the extension at its default/usual position.
    • BEFORE_END

      public static final ExtensionPlacement BEFORE_END
      Place the extension right before the "End" structured field.
  • Method Details

    • values

      public static ExtensionPlacement[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ExtensionPlacement 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
    • getXMLValue

      public String getXMLValue()
      Returns the XML value that corresponds to this enum value.
      Returns:
      the XML value
    • fromXMLValue

      public static ExtensionPlacement fromXMLValue(String value)
      Returns the enum value from the given XML value for this enumeration.
      Parameters:
      value - the XML value
      Returns:
      the enum value