Enum Class OutputContext

java.lang.Object
java.lang.Enum<OutputContext>
net.time4j.format.OutputContext
All Implemented Interfaces:
Serializable, Comparable<OutputContext>, java.lang.constant.Constable

public enum OutputContext extends Enum<OutputContext>

Determines in which output context the formatting is to be performed.

Author:
Meno Hochschild
See Also:
Attributes.OUTPUT_CONTEXT
  • Enum Constant Details

    • FORMAT

      public static final OutputContext FORMAT

      Standard format context (for example weekday names within a formatted calendar date).

    • STANDALONE

      public static final OutputContext STANDALONE

      Stand-alone-output (for example weekday names as column headers in a month calendar).

  • Method Details

    • values

      public static OutputContext[] 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 OutputContext 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