Enum Class TextDirection

java.lang.Object
java.lang.Enum<TextDirection>
org.apache.jena.graph.TextDirection
All Implemented Interfaces:
Serializable, Comparable<TextDirection>, Constable

public enum TextDirection extends Enum<TextDirection>
  • Enum Constant Details

  • Method Details

    • values

      public static TextDirection[] 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 TextDirection 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
    • direction

      public String direction()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TextDirection>
    • create

      public static TextDirection create(String label)
      TextDirection for a valid label ('ltr or 'rtl'). This function throws an exception on a wrong label.
    • createOrNull

      public static TextDirection createOrNull(String label)
      TextDirection for a valid label ('ltr or 'rtl'). This function returns null for an invalid label. The calling code is expected to give a context-sensitive error message if null is returned.
    • isValid

      public static boolean isValid(String label)