Enum Option

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Option>

    public enum Option
    extends java.lang.Enum<Option>
    Options to define a StringPrep profile.
    Since:
    2.0
    • Enum Constant Detail

      • MAP_TO_NOTHING

        public static final Option MAP_TO_NOTHING
        B.1 Commonly mapped to nothing
      • ADDITIONAL_MAPPING

        public static final Option ADDITIONAL_MAPPING
        Any additional mapping tables specific to the profile.
      • CASE_FOLD_NFKC

        public static final Option CASE_FOLD_NFKC
        B.2 Mapping for case-folding used with NFKC.
      • CASE_FOLD_NO_NORMALIZATION

        public static final Option CASE_FOLD_NO_NORMALIZATION
        B.3 Mapping for case-folding used with no normalization.
      • NORMALIZE_KC

        public static final Option NORMALIZE_KC
        Unicode normalization with form KC.
      • CHECK_BIDI

        public static final Option CHECK_BIDI
        Bidirectional tables.
      • FORBID_ADDITIONAL_CHARACTERS

        public static final Option FORBID_ADDITIONAL_CHARACTERS
        Any additional characters that are prohibited as output specific to the profile.
      • FORBID_ASCII_SPACES

        public static final Option FORBID_ASCII_SPACES
        C.1.1 ASCII space characters
      • FORBID_NON_ASCII_SPACES

        public static final Option FORBID_NON_ASCII_SPACES
        C.1.2 Non-ASCII space characters
      • FORBID_ASCII_CONTROL

        public static final Option FORBID_ASCII_CONTROL
        C.2.1 ASCII control characters
      • FORBID_NON_ASCII_CONTROL

        public static final Option FORBID_NON_ASCII_CONTROL
        C.2.2 Non-ASCII control characters
      • FORBID_PRIVATE_USE

        public static final Option FORBID_PRIVATE_USE
        C.3 Private use
      • FORBID_NON_CHARACTER

        public static final Option FORBID_NON_CHARACTER
        C.4 Non-character code points.
      • FORBID_SURROGATE

        public static final Option FORBID_SURROGATE
        C.5 Surrogate codes.
      • FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT

        public static final Option FORBID_INAPPROPRIATE_FOR_PLAIN_TEXT
        C.6 Inappropriate for plain text.
      • FORBID_INAPPROPRIATE_FOR_CANON_REP

        public static final Option FORBID_INAPPROPRIATE_FOR_CANON_REP
        C.7 Inappropriate for canonical representation
      • FORBID_CHANGE_DISPLAY_AND_DEPRECATED

        public static final Option FORBID_CHANGE_DISPLAY_AND_DEPRECATED
        C.8 Change display properties or are deprecated
      • FORBID_TAGGING

        public static final Option FORBID_TAGGING
        C.9 Tagging characters
    • Constructor Detail

      • Option

        private Option()
    • Method Detail

      • values

        public static Option[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Option c : Option.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Option valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null