Enum Class ReferenceFormat

java.lang.Object
java.lang.Enum<ReferenceFormat>
com.independentsoft.office.odf.ReferenceFormat
All Implemented Interfaces:
Serializable, Comparable<ReferenceFormat>, Constable

public enum ReferenceFormat extends Enum<ReferenceFormat>
Represents what information about a reference is displayed. If the reference format is not specified, the page format is used as the default.
  • Enum Constant Details

    • PAGE

      public static final ReferenceFormat PAGE
      Displays the number of the page on which the referenced item appears.
    • CHAPTER

      public static final ReferenceFormat CHAPTER
      Displays the number of the chapter in which the referenced item appears.
    • DIRECTION

      public static final ReferenceFormat DIRECTION
      Displays whether the referenced item is above or below the reference field.
    • TEXT

      public static final ReferenceFormat TEXT
      Displays the number of the page on which the referenced item appears.
    • NONE

      public static final ReferenceFormat NONE
      None.
  • Method Details

    • values

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

      public static ReferenceFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null