Enum Class TextCaser

java.lang.Object
java.lang.Enum<TextCaser>
ee.jakarta.tck.ws.rs.common.client.TextCaser
All Implemented Interfaces:
Serializable, Comparable<TextCaser>, Constable

public enum TextCaser extends Enum<TextCaser>
Standard WebTestCase can search strings in an order case sensitive, case insensitive or not in order case sensitive. When there is a need to match not in order and case insensitive, this class is used.
  • Enum Constant Details

  • Method Details

    • values

      public static TextCaser[] 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 TextCaser 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
    • getCasedText

      public final String getCasedText(String text)
      Get the text upper cased, lower cased, or unchanged, depending on current TextCaser value